[ekiga] Make F11 (fullscreen) work again



commit ab02551ee390db903cde450f5d0ce64d1550bb33
Author: Eugen Dedu <Eugen Dedu pu-pm univ-fcomte fr>
Date:   Fri Dec 17 17:27:16 2010 +0100

    Make F11 (fullscreen) work again
    
    Fixes bug #631732.
    
    It is not the final solution, since this code does not compile with
    GSEAL.  A GSEAL-compatible solution will be found later.

 lib/gui/gmmenuaddon.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/lib/gui/gmmenuaddon.c b/lib/gui/gmmenuaddon.c
index ceb94be..43bd23b 100644
--- a/lib/gui/gmmenuaddon.c
+++ b/lib/gui/gmmenuaddon.c
@@ -502,10 +502,11 @@ gtk_radio_menu_select_with_id (GtkWidget *menu,
   group_last_pos = g_slist_length (group) - 1; /* If length 1, last pos is 0 */
   while (group) {
 
+    // note: the following calls must not call callbacks
     if (gtk_widget_is_sensitive (GTK_WIDGET (group->data)))
-      gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (group->data), (i == group_last_pos - active));
+      GTK_CHECK_MENU_ITEM (group->data)->active = (i == group_last_pos - active);
     else
-      gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (group->data), FALSE);
+      GTK_CHECK_MENU_ITEM (group->data)->active = FALSE;
 
     gtk_widget_queue_draw (GTK_WIDGET (group->data));
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]