Commit 4439ea7a3de5fd71e43a240cbbba1642f7c973d5
1 parent
fa936e43
Exists in
master
and in
5 other branches
Corrigindo erro no empacotamento de distros um pouco mais antigas
Showing
2 changed files
with
15 additions
and
2 deletions
Show diff stats
src/pw3270/actions.c
@@ -71,7 +71,7 @@ static void connect_action(GtkAction *action, GtkWidget *widget) | @@ -71,7 +71,7 @@ static void connect_action(GtkAction *action, GtkWidget *widget) | ||
71 | const gchar * host = (const gchar *) g_object_get_data(G_OBJECT(action),"host"); | 71 | const gchar * host = (const gchar *) g_object_get_data(G_OBJECT(action),"host"); |
72 | const gchar * systype = (const gchar *) g_object_get_data(G_OBJECT(action),"type"); | 72 | const gchar * systype = (const gchar *) g_object_get_data(G_OBJECT(action),"type"); |
73 | const gchar * colortype = (const gchar *) g_object_get_data(G_OBJECT(action),"colors"); | 73 | const gchar * colortype = (const gchar *) g_object_get_data(G_OBJECT(action),"colors"); |
74 | - unsigned short colors; | 74 | +// unsigned short colors; |
75 | 75 | ||
76 | trace_action(action,widget); | 76 | trace_action(action,widget); |
77 | 77 |
src/pw3270/v3270/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 |