Re: [PATCH] Add icon to "New Document->Empty File" action

On Tue, 2005-06-28 at 12:22 +0200, Christian Neumair wrote:
> I don't remember where it was requested, but somebody asked for an icon
> for the "New Empty File" action in the New Document menu. The attached
> patch adds it.

+       if (strcmp (gtk_action_get_name (action),
+           !GTK_IS_IMAGE_MENU_ITEM (proxy)) {
+               return;
+       }

Do this check the other way instead.

if (is the right action) {
  set the icon;

 Alexander Larsson                                            Red Hat, Inc 
                   alexl redhat com    alla lysator liu se 
He's an old-fashioned one-eyed paranormal investigator who must take 
medication to keep him sane. She's a cold-hearted snooty snake charmer looking 
for love in all the wrong places. They fight crime! 

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