X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=gtk%2Fgtkcheckmenuitem.c;h=343565d2d8d4e34d4a193fbf95c65dab6b7e613f;hb=cade42d5094ceaa7799aa8e2135959573646a4b6;hp=5c6f5f0801f79d1325812f31b0913cb9f8954ef8;hpb=9306b266a01cb7f31ef189f5035d05df5b6fed1c;p=~andy%2Fgtk diff --git a/gtk/gtkcheckmenuitem.c b/gtk/gtkcheckmenuitem.c index 5c6f5f080..343565d2d 100644 --- a/gtk/gtkcheckmenuitem.c +++ b/gtk/gtkcheckmenuitem.c @@ -12,9 +12,7 @@ * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the - * Free Software Foundation, Inc., 59 Temple Place - Suite 330, - * Boston, MA 02111-1307, USA. + * License along with this library. If not, see . */ /* @@ -272,13 +270,14 @@ gtk_check_menu_item_new_with_label (const gchar *label) /** * gtk_check_menu_item_new_with_mnemonic: * @label: The text of the button, with an underscore in front of the - * mnemonic character - * @returns: a new #GtkCheckMenuItem + * character * * Creates a new #GtkCheckMenuItem containing a label. The label * will be created using gtk_label_new_with_mnemonic(), so underscores * in @label indicate the mnemonic for the menu item. - **/ + * + * Returns: a new #GtkCheckMenuItem + */ GtkWidget* gtk_check_menu_item_new_with_mnemonic (const gchar *label) { @@ -559,7 +558,7 @@ gtk_real_check_menu_item_draw_indicator (GtkCheckMenuItem *check_menu_item, if (priv->active || priv->always_show_toggle || - (gtk_widget_get_state_flags (widget) & GTK_STATE_FLAG_PRELIGHT)) + (state & GTK_STATE_FLAG_PRELIGHT)) { gtk_style_context_save (context); @@ -568,9 +567,6 @@ gtk_real_check_menu_item_draw_indicator (GtkCheckMenuItem *check_menu_item, else if (priv->active) state |= GTK_STATE_FLAG_ACTIVE; - if (!gtk_widget_is_sensitive (widget)) - state |= GTK_STATE_FLAG_INSENSITIVE; - gtk_style_context_set_state (context, state); if (priv->draw_as_radio)