Branch: refs/heads/master Author: Colomban Wendling ban@herbesfolles.org Committer: Colomban Wendling ban@herbesfolles.org Date: Wed, 08 Aug 2012 11:19:06 Commit: 49f02b5d6ed13c55795548243e06d1baf8b675b1 https://github.com/geany/geany-plugins/commit/49f02b5d6ed13c55795548243e06d1...
Log Message: ----------- commander: Fix compatibility macro for gtk_widget_set_can_focus()
Modified Paths: -------------- commander/src/commander-plugin.c
Modified: commander/src/commander-plugin.c 11 files changed, 9 insertions(+), 2 deletions(-) =================================================================== @@ -48,8 +48,15 @@ #if ! GTK_CHECK_VERSION (2, 18, 0) # define gtk_widget_get_visible(w) \ (GTK_WIDGET_VISIBLE (w)) -# define gtk_widget_set_can_focus(w) \ - (GTK_WIDGET_SET_FLAGS ((w), GTK_CAN_FOCUS)) +# define gtk_widget_set_can_focus(w, v) \ + G_STMT_START { \ + GtkWidget *widget = (w); \ + if (v) { \ + GTK_WIDGET_SET_FLAGS (widget, GTK_CAN_FOCUS); \ + } else { \ + GTK_WIDGET_UNSET_FLAGS (widget, GTK_CAN_FOCUS); \ + } \ + } G_STMT_END #endif
#if ! GTK_CHECK_VERSION (2, 21, 8)
@@ Diff output truncated at 100000 characters. @@
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: TBD).