Commit cdbacff1ab12b7a0b8ce1b9522d7566c2502ca3a
1 parent
5c798d43
Exists in
master
and in
5 other branches
Incluindo teste pelo novo gtk para remoção de warnings
Showing
1 changed file
with
9 additions
and
0 deletions
Show diff stats
src/pw3270/window.c
@@ -389,7 +389,11 @@ | @@ -389,7 +389,11 @@ | ||
389 | 389 | ||
390 | static void pastenext(GtkWidget *widget, gboolean on, GtkAction **action) | 390 | static void pastenext(GtkWidget *widget, gboolean on, GtkAction **action) |
391 | { | 391 | { |
392 | +#if GTK_CHECK_VERSION(3,10,0) | ||
393 | + g_simple_action_set_enabled(G_SIMPLE_ACTION(action[ACTION_PASTENEXT]),on); | ||
394 | +#else | ||
392 | gtk_action_set_sensitive(action[ACTION_PASTENEXT],on); | 395 | gtk_action_set_sensitive(action[ACTION_PASTENEXT],on); |
396 | +#endif // GTK(3,10) | ||
393 | } | 397 | } |
394 | 398 | ||
395 | static void disconnected(GtkWidget *terminal, GtkWidget * window) | 399 | static void disconnected(GtkWidget *terminal, GtkWidget * window) |
@@ -455,8 +459,13 @@ | @@ -455,8 +459,13 @@ | ||
455 | GtkAction **action = (GtkAction **) g_object_get_data(G_OBJECT(widget),"named_actions"); | 459 | GtkAction **action = (GtkAction **) g_object_get_data(G_OBJECT(widget),"named_actions"); |
456 | gtk_action_group_set_sensitive(group[ACTION_GROUP_SELECTION],on); | 460 | gtk_action_group_set_sensitive(group[ACTION_GROUP_SELECTION],on); |
457 | 461 | ||
462 | +#if GTK_CHECK_VERSION(3,10,0) | ||
463 | + if(action[ACTION_RESELECT]) | ||
464 | + g_simple_action_set_enabled(G_SIMPLE_ACTION(action[ACTION_RESELECT]),!on); | ||
465 | +#else | ||
458 | if(action[ACTION_RESELECT]) | 466 | if(action[ACTION_RESELECT]) |
459 | gtk_action_set_sensitive(action[ACTION_RESELECT],!on); | 467 | gtk_action_set_sensitive(action[ACTION_RESELECT],!on); |
468 | +#endif // GTK(3,10) | ||
460 | 469 | ||
461 | } | 470 | } |
462 | 471 |