Commit da9163c3d1391c59b6c547a8b6547ec1a8dd5eca
1 parent
5ce28fce
Exists in
master
and in
1 other branch
Corrigindo erro no empacotamento de distros um pouco mais antigas
Showing
1 changed file
with
14 additions
and
1 deletions
Show diff stats
widget.c
@@ -795,7 +795,11 @@ static void update_toggle(H3270 *session, LIB3270_TOGGLE ix, unsigned char value | @@ -795,7 +795,11 @@ static void update_toggle(H3270 *session, LIB3270_TOGGLE ix, unsigned char value | ||
795 | else | 795 | else |
796 | gtk_window_unfullscreen(GTK_WINDOW(gtk_widget_get_toplevel(GTK_WIDGET(session->widget)))); | 796 | gtk_window_unfullscreen(GTK_WINDOW(gtk_widget_get_toplevel(GTK_WIDGET(session->widget)))); |
797 | } | 797 | } |
798 | +#if GTK_CHECK_VERSION(2,26,0) | ||
798 | g_object_notify_by_pspec(G_OBJECT(session->widget), v3270_properties[PROP_TOGGLE+ix]); | 799 | g_object_notify_by_pspec(G_OBJECT(session->widget), v3270_properties[PROP_TOGGLE+ix]); |
800 | +#else | ||
801 | + g_object_notify(G_OBJECT(session->widget),lib3270_get_toggle_name(ix)); | ||
802 | +#endif // GTK_CHECK_VERSION | ||
799 | g_signal_emit(GTK_WIDGET(session->widget), v3270_widget_signal[SIGNAL_TOGGLE_CHANGED], 0, (guint) ix, (gboolean) (value != 0), (gchar *) name); | 803 | g_signal_emit(GTK_WIDGET(session->widget), v3270_widget_signal[SIGNAL_TOGGLE_CHANGED], 0, (guint) ix, (gboolean) (value != 0), (gchar *) name); |
800 | } | 804 | } |
801 | 805 | ||
@@ -856,7 +860,11 @@ static void update_connect(H3270 *session, unsigned char connected) | @@ -856,7 +860,11 @@ static void update_connect(H3270 *session, unsigned char connected) | ||
856 | g_signal_emit(GTK_WIDGET(widget), v3270_widget_signal[SIGNAL_DISCONNECTED], 0); | 860 | g_signal_emit(GTK_WIDGET(widget), v3270_widget_signal[SIGNAL_DISCONNECTED], 0); |
857 | } | 861 | } |
858 | 862 | ||
859 | - g_object_notify_by_pspec(G_OBJECT(session->widget), v3270_properties[PROP_ONLINE]); | 863 | +#if GTK_CHECK_VERSION(2,26,0) |
864 | + g_object_notify_by_pspec(G_OBJECT(widget), v3270_properties[PROP_ONLINE]); | ||
865 | +#else | ||
866 | + g_object_notify(G_OBJECT(widget),"online"); | ||
867 | +#endif // GTK_CHECK_VERSION | ||
860 | 868 | ||
861 | gtk_widget_queue_draw(GTK_WIDGET(widget)); | 869 | gtk_widget_queue_draw(GTK_WIDGET(widget)); |
862 | } | 870 | } |
@@ -936,7 +944,12 @@ static void set_selection(H3270 *session, unsigned char status) | @@ -936,7 +944,12 @@ static void set_selection(H3270 *session, unsigned char status) | ||
936 | { | 944 | { |
937 | GtkWidget * widget = GTK_WIDGET(session->widget); | 945 | GtkWidget * widget = GTK_WIDGET(session->widget); |
938 | 946 | ||
947 | +#if GTK_CHECK_VERSION(2,26,0) | ||
939 | g_object_notify_by_pspec(G_OBJECT(widget), v3270_properties[PROP_SELECTION]); | 948 | g_object_notify_by_pspec(G_OBJECT(widget), v3270_properties[PROP_SELECTION]); |
949 | +#else | ||
950 | + g_object_notify(G_OBJECT(widget),"selection"); | ||
951 | +#endif // GTK_CHECK_VERSION | ||
952 | + | ||
940 | g_signal_emit(widget,v3270_widget_signal[SIGNAL_SELECTING], 0, status ? TRUE : FALSE); | 953 | g_signal_emit(widget,v3270_widget_signal[SIGNAL_SELECTING], 0, status ? TRUE : FALSE); |
941 | } | 954 | } |
942 | 955 |