gtk_check_menu_item_set_show_toggle() is deprecated and not needed.
authorwmeier <wmeier@f5534014-38df-0310-8fa8-9805f1628bb7>
Thu, 7 May 2009 14:35:02 +0000 (14:35 +0000)
committerwmeier <wmeier@f5534014-38df-0310-8fa8-9805f1628bb7>
Thu, 7 May 2009 14:35:02 +0000 (14:35 +0000)
 [show_toggle is always TRUE].

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@28292 f5534014-38df-0310-8fa8-9805f1628bb7

gtk/main_menu.c
tools/checkAPIs.pl

index 5704b7f5edb558147609246fb6282a1840b99f54..d7db2c600ce8e7a8eabc5c2b337c86194b9258cd 100644 (file)
@@ -2969,7 +2969,6 @@ add_protocol_prefs_menu (pref_t *pref, gpointer data)
     case PREF_BOOL:
         menu_item = gtk_check_menu_item_new_with_label(pref->title);
         gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM(menu_item), *pref->varp.boolp);
-        gtk_check_menu_item_set_show_toggle (GTK_CHECK_MENU_ITEM(menu_item), TRUE);
         g_object_set_data (G_OBJECT(menu_item), "module", module);
         g_signal_connect(menu_item, "activate", G_CALLBACK(menu_prefs_toggle_bool), pref->varp.boolp);
         break;
index f91de40392fe276c0b5fac6204d7756ee0b49c01..be92ee96234e1ff7e893ac382abeda7ff9126891 100755 (executable)
@@ -238,13 +238,13 @@ my %deprecatedGtkFunctions = (
                 'gtk_cell_renderer_editing_canceled',          'E',
                 'GTK_CELL_TEXT',                               'W',
                 'GTK_CELL_WIDGET',                             'E',
-                'GTK_CHECK_CAST',                              'E', # >>> G_TYPE_CHECK_INSTANCE_CAST [==]
-                'GTK_CHECK_CLASS_CAST',                        'E', # >>> G_TYPE_CHECK_CLASS_CAST [==]
-                'GTK_CHECK_CLASS_TYPE',                        'E', # >>> G_TYPE_CHECK_CLASS_TYPE [==]
-                'GTK_CHECK_GET_CLASS',                         'E', # >>> G_TYPE_INSTANCE_GET_CLASS [==]
-                'gtk_check_menu_item_set_show_toggle',         'W', # ?? 
+                'GTK_CHECK_CAST',                              'E', # G_TYPE_CHECK_INSTANCE_CAST [==]
+                'GTK_CHECK_CLASS_CAST',                        'E', # G_TYPE_CHECK_CLASS_CAST [==]
+                'GTK_CHECK_CLASS_TYPE',                        'E', # G_TYPE_CHECK_CLASS_TYPE [==]
+                'GTK_CHECK_GET_CLASS',                         'E', # G_TYPE_INSTANCE_GET_CLASS [==]
+                'gtk_check_menu_item_set_show_toggle',         'E', # Does nothing; remove; [show_toggle is always TRUE]
                 'gtk_check_menu_item_set_state',               'E',
-                'GTK_CHECK_TYPE',                              'E', # >>> G_TYPE_CHECK_INSTANCE_TYPE [==]
+                'GTK_CHECK_TYPE',                              'E', # G_TYPE_CHECK_INSTANCE_TYPE [==]
                 'GTK_CLASS_NAME',                              'E',
                 'GTK_CLASS_TYPE',                              'E',
                 'GTK_CLIST_ADD_MODE',                          'E', # GtkTreeView (& related) ...