mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Replace register Gtk3.14 deprecated functions related to gtk_arrow
Replaced gtk_arrow with a gtk_image_from_icon and used 'go-down' and 'go-up', may need to replace with our own.
This commit is contained in:
parent
200f7baf53
commit
a437e2405d
@ -527,8 +527,11 @@ gnc_item_edit_new (GnucashSheet *sheet)
|
||||
/* Create the popup button
|
||||
It will only be displayed when the cell being edited provides
|
||||
a popup item (like a calendar or account list) */
|
||||
item_edit->popup_toggle.arrow = GTK_ARROW(gtk_arrow_new(GTK_ARROW_DOWN,
|
||||
GTK_SHADOW_IN));
|
||||
#if GTK_CHECK_VERSION(3,14,0)
|
||||
item_edit->popup_toggle.arrow = gtk_image_new_from_icon_name ("go-down", GTK_ICON_SIZE_BUTTON);
|
||||
#else
|
||||
item_edit->popup_toggle.arrow = GTK_WIDGET(gtk_arrow_new(GTK_ARROW_DOWN, GTK_SHADOW_IN));
|
||||
#endif
|
||||
|
||||
item_edit->popup_toggle.tbutton = gtk_toggle_button_new();
|
||||
gtk_toggle_button_set_mode (
|
||||
@ -642,8 +645,11 @@ gnc_item_edit_show_popup (GncItemEdit *item_edit)
|
||||
unblock_toggle_signals (item_edit);
|
||||
}
|
||||
|
||||
gtk_arrow_set (item_edit->popup_toggle.arrow,
|
||||
GTK_ARROW_UP, GTK_SHADOW_OUT);
|
||||
#if GTK_CHECK_VERSION(3,14,0)
|
||||
item_edit->popup_toggle.arrow = gtk_image_new_from_icon_name ("go-up", GTK_ICON_SIZE_BUTTON);
|
||||
#else
|
||||
gtk_arrow_set (GTK_ARROW(item_edit->popup_toggle.arrow), GTK_ARROW_UP, GTK_SHADOW_OUT);
|
||||
#endif
|
||||
|
||||
if (item_edit->popup_set_focus)
|
||||
item_edit->popup_set_focus (item_edit->popup_item,
|
||||
@ -685,8 +691,11 @@ gnc_item_edit_hide_popup (GncItemEdit *item_edit)
|
||||
return;
|
||||
|
||||
gtk_container_remove (GTK_CONTAINER(item_edit->sheet), item_edit->popup_item);
|
||||
gtk_arrow_set (item_edit->popup_toggle.arrow,
|
||||
GTK_ARROW_DOWN, GTK_SHADOW_IN);
|
||||
#if GTK_CHECK_VERSION(3,14,0)
|
||||
item_edit->popup_toggle.arrow = gtk_image_new_from_icon_name ("go-down", GTK_ICON_SIZE_BUTTON);
|
||||
#else
|
||||
gtk_arrow_set (GTK_ARROW(item_edit->popup_toggle.arrow), GTK_ARROW_DOWN, GTK_SHADOW_IN);
|
||||
#endif
|
||||
|
||||
gtk_toggle_button_set_active
|
||||
(GTK_TOGGLE_BUTTON(item_edit->popup_toggle.tbutton), FALSE);
|
||||
|
@ -61,7 +61,7 @@ struct _PopupToggle
|
||||
{
|
||||
GtkWidget *ebox;
|
||||
GtkWidget *tbutton;
|
||||
GtkArrow *arrow;
|
||||
GtkWidget *arrow;
|
||||
gboolean signals_connected;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user