Commit 7ec75064 authored by Jiri (George) Lebl's avatar Jiri (George) Lebl Committed by George Lebl

fixed the bug of submenu's activating ... if a dentry has nothing to

Mon Mar 23 23:57:03 1998  George Lebl  <jirka@5z.com>

        * menu.c: fixed the bug of submenu's activating ... if
          a dentry has nothing to execute it doesn't deserve an
          "activate" callback.
parent 8b04ef53
Mon Mar 23 23:57:03 1998 George Lebl <jirka@5z.com>
* menu.c: fixed the bug of submenu's activating ... if
a dentry has nothing to execute it doesn't deserve an
"activate" callback.
Fri Mar 20 01:09:35 1998 George Lebl <jirka@5z.com>
* *.c: general cleanup after a -Wall compilation
......
Mon Mar 23 23:57:03 1998 George Lebl <jirka@5z.com>
* menu.c: fixed the bug of submenu's activating ... if
a dentry has nothing to execute it doesn't deserve an
"activate" callback.
Fri Mar 20 01:09:35 1998 George Lebl <jirka@5z.com>
* *.c: general cleanup after a -Wall compilation
......
......@@ -133,8 +133,12 @@ create_launcher (GtkWidget *window, char *parameters)
}
gtk_container_add (GTK_CONTAINER(launcher->button), pixmap);
gtk_widget_show (pixmap);
gtk_widget_set_usize (launcher->button, pixmap->requisition.width,
pixmap->requisition.height);
/*gtk_widget_set_usize (launcher->button, pixmap->requisition.width,
pixmap->requisition.height);*/
/*FIXME: we'll do this better alter, but this makes it look fine with
normal icons*/
gtk_widget_set_usize (launcher->button, 48, 48);
gtk_widget_show (launcher->button);
launcher->signal_click_tag = gtk_signal_connect (GTK_OBJECT(launcher->button), "clicked",
......
......@@ -257,11 +257,13 @@ create_menu_at (char *menudir, int create_app_menu)
gtk_signal_connect (GTK_OBJECT (menuitem), "destroy",
(GtkSignalFunc) free_app_def, item_info);
activate_func = create_app_menu ?
GTK_SIGNAL_FUNC(add_app_to_panel) :
GTK_SIGNAL_FUNC(activate_app_def);
gtk_signal_connect (GTK_OBJECT (menuitem), "activate",
activate_func, item_info);
if(item_info && item_info->exec) {
activate_func = create_app_menu ?
GTK_SIGNAL_FUNC(add_app_to_panel) :
GTK_SIGNAL_FUNC(activate_app_def);
gtk_signal_connect (GTK_OBJECT (menuitem), "activate",
activate_func, item_info);
}
g_free (filename);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment