]> Pileus Git - ~andy/gtk/commitdiff
in comparisions with GTK_TYPE_STRING, use the fundamental type to catch
authorTim Janik <timj@gtk.org>
Wed, 13 Jan 1999 20:36:23 +0000 (20:36 +0000)
committerTim Janik <timj@src.gnome.org>
Wed, 13 Jan 1999 20:36:23 +0000 (20:36 +0000)
Wed Jan 13 20:14:32 1999  Tim Janik  <timj@gtk.org>

        * gtk/gtkarg.c (gtk_arg_copy): in comparisions with GTK_TYPE_STRING, use
        the fundamental type to catch GTK_TYPE_IDENTIFIER as well.

        * gtk/gtkmenushell.c:
        (gtk_real_menu_shell_activate_current):
        (gtk_menu_shell_button_release): asure that we only activate sensitive
        menu items, reported by Dave Cole <dave@dccs.com.au>.

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gtk/gtkarg.c
gtk/gtkmenushell.c

index 58d92d6bc0c653d964528d43731e38174c960887..a4deec82944694a51ff570aa9599a53a00d081de 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+Wed Jan 13 20:14:32 1999  Tim Janik  <timj@gtk.org>
+
+       * gtk/gtkarg.c (gtk_arg_copy): in comparisions with GTK_TYPE_STRING, use
+       the fundamental type to catch GTK_TYPE_IDENTIFIER as well.
+
+       * gtk/gtkmenushell.c:
+       (gtk_real_menu_shell_activate_current):
+       (gtk_menu_shell_button_release): asure that we only activate sensitive
+       menu items, reported by Dave Cole <dave@dccs.com.au>.
+
 Wed Jan 13 13:28:00 1999  Tim Janik  <timj@gtk.org>
 
        * gtk/gtkwidget.c: eliminate queue_clears or queue_draws where we know
index 58d92d6bc0c653d964528d43731e38174c960887..a4deec82944694a51ff570aa9599a53a00d081de 100644 (file)
@@ -1,3 +1,13 @@
+Wed Jan 13 20:14:32 1999  Tim Janik  <timj@gtk.org>
+
+       * gtk/gtkarg.c (gtk_arg_copy): in comparisions with GTK_TYPE_STRING, use
+       the fundamental type to catch GTK_TYPE_IDENTIFIER as well.
+
+       * gtk/gtkmenushell.c:
+       (gtk_real_menu_shell_activate_current):
+       (gtk_menu_shell_button_release): asure that we only activate sensitive
+       menu items, reported by Dave Cole <dave@dccs.com.au>.
+
 Wed Jan 13 13:28:00 1999  Tim Janik  <timj@gtk.org>
 
        * gtk/gtkwidget.c: eliminate queue_clears or queue_draws where we know
index 58d92d6bc0c653d964528d43731e38174c960887..a4deec82944694a51ff570aa9599a53a00d081de 100644 (file)
@@ -1,3 +1,13 @@
+Wed Jan 13 20:14:32 1999  Tim Janik  <timj@gtk.org>
+
+       * gtk/gtkarg.c (gtk_arg_copy): in comparisions with GTK_TYPE_STRING, use
+       the fundamental type to catch GTK_TYPE_IDENTIFIER as well.
+
+       * gtk/gtkmenushell.c:
+       (gtk_real_menu_shell_activate_current):
+       (gtk_menu_shell_button_release): asure that we only activate sensitive
+       menu items, reported by Dave Cole <dave@dccs.com.au>.
+
 Wed Jan 13 13:28:00 1999  Tim Janik  <timj@gtk.org>
 
        * gtk/gtkwidget.c: eliminate queue_clears or queue_draws where we know
index 58d92d6bc0c653d964528d43731e38174c960887..a4deec82944694a51ff570aa9599a53a00d081de 100644 (file)
@@ -1,3 +1,13 @@
+Wed Jan 13 20:14:32 1999  Tim Janik  <timj@gtk.org>
+
+       * gtk/gtkarg.c (gtk_arg_copy): in comparisions with GTK_TYPE_STRING, use
+       the fundamental type to catch GTK_TYPE_IDENTIFIER as well.
+
+       * gtk/gtkmenushell.c:
+       (gtk_real_menu_shell_activate_current):
+       (gtk_menu_shell_button_release): asure that we only activate sensitive
+       menu items, reported by Dave Cole <dave@dccs.com.au>.
+
 Wed Jan 13 13:28:00 1999  Tim Janik  <timj@gtk.org>
 
        * gtk/gtkwidget.c: eliminate queue_clears or queue_draws where we know
index 58d92d6bc0c653d964528d43731e38174c960887..a4deec82944694a51ff570aa9599a53a00d081de 100644 (file)
@@ -1,3 +1,13 @@
+Wed Jan 13 20:14:32 1999  Tim Janik  <timj@gtk.org>
+
+       * gtk/gtkarg.c (gtk_arg_copy): in comparisions with GTK_TYPE_STRING, use
+       the fundamental type to catch GTK_TYPE_IDENTIFIER as well.
+
+       * gtk/gtkmenushell.c:
+       (gtk_real_menu_shell_activate_current):
+       (gtk_menu_shell_button_release): asure that we only activate sensitive
+       menu items, reported by Dave Cole <dave@dccs.com.au>.
+
 Wed Jan 13 13:28:00 1999  Tim Janik  <timj@gtk.org>
 
        * gtk/gtkwidget.c: eliminate queue_clears or queue_draws where we know
index 58d92d6bc0c653d964528d43731e38174c960887..a4deec82944694a51ff570aa9599a53a00d081de 100644 (file)
@@ -1,3 +1,13 @@
+Wed Jan 13 20:14:32 1999  Tim Janik  <timj@gtk.org>
+
+       * gtk/gtkarg.c (gtk_arg_copy): in comparisions with GTK_TYPE_STRING, use
+       the fundamental type to catch GTK_TYPE_IDENTIFIER as well.
+
+       * gtk/gtkmenushell.c:
+       (gtk_real_menu_shell_activate_current):
+       (gtk_menu_shell_button_release): asure that we only activate sensitive
+       menu items, reported by Dave Cole <dave@dccs.com.au>.
+
 Wed Jan 13 13:28:00 1999  Tim Janik  <timj@gtk.org>
 
        * gtk/gtkwidget.c: eliminate queue_clears or queue_draws where we know
index 58d92d6bc0c653d964528d43731e38174c960887..a4deec82944694a51ff570aa9599a53a00d081de 100644 (file)
@@ -1,3 +1,13 @@
+Wed Jan 13 20:14:32 1999  Tim Janik  <timj@gtk.org>
+
+       * gtk/gtkarg.c (gtk_arg_copy): in comparisions with GTK_TYPE_STRING, use
+       the fundamental type to catch GTK_TYPE_IDENTIFIER as well.
+
+       * gtk/gtkmenushell.c:
+       (gtk_real_menu_shell_activate_current):
+       (gtk_menu_shell_button_release): asure that we only activate sensitive
+       menu items, reported by Dave Cole <dave@dccs.com.au>.
+
 Wed Jan 13 13:28:00 1999  Tim Janik  <timj@gtk.org>
 
        * gtk/gtkwidget.c: eliminate queue_clears or queue_draws where we know
index ff543e63ca1d6e656b52ef391e46f85dd809ca57..15c0501d8cc857974ef2526ed7c4b5ec4bbdd790 100644 (file)
@@ -407,7 +407,7 @@ gtk_arg_copy (GtkArg         *src_arg,
   dest_arg->type = src_arg->type;
   dest_arg->d = src_arg->d;
 
-  if (src_arg->type == GTK_TYPE_STRING)
+  if (GTK_FUNDAMENTAL_TYPE (src_arg->type) == GTK_TYPE_STRING)
     GTK_VALUE_STRING (*dest_arg) = g_strdup (GTK_VALUE_STRING (*src_arg));
 
   return dest_arg;
index 0f6555d1b4a5bf477ab30416677d6541a3d2924f..7583ea71f9b007d90dbd9415b822422cae941088 100644 (file)
@@ -506,7 +506,8 @@ gtk_menu_shell_button_release (GtkWidget      *widget,
 
       if ((event->time - menu_shell->activate_time) > MENU_SHELL_TIMEOUT)
        {
-         if (menu_item && (menu_shell->active_menu_item == menu_item))
+         if (menu_item && (menu_shell->active_menu_item == menu_item) &&
+             GTK_WIDGET_IS_SENSITIVE (menu_item))
            {
              if (GTK_MENU_ITEM (menu_item)->submenu == NULL)
                {
@@ -968,6 +969,7 @@ gtk_real_menu_shell_activate_current (GtkMenuShell      *menu_shell,
                                      gboolean           force_hide)
 {
   if (menu_shell->active_menu_item &&
+      GTK_WIDGET_IS_SENSITIVE (menu_shell->active_menu_item) &&
       GTK_MENU_ITEM (menu_shell->active_menu_item)->submenu == NULL)
     {
       gtk_menu_shell_activate_item (menu_shell,