Commit 0e7224d6 authored by Jim Krehl's avatar Jim Krehl

add action flags to application tile

svn path=/trunk/; revision=239
parent 577d863c
......@@ -5,6 +5,9 @@
Make the menu abide by /apps/panel/global/disable_{log_out,lock_screen}
in gconf.
* libslab/application-tile.c:
Set the Upgrade/Uninstall action flags appropriately.
2007-03-16 Jim Krehl <jimmyk@novell.com>
* main-menu/src/main-menu-ui.c
* main-menu/src/user-apps-tile-table.c
......
......@@ -425,7 +425,7 @@ application_tile_setup (ApplicationTile *this, const gchar *gconf_prefix)
key = "/apps/main-menu/upgrade_package_command";
if (verify_package_management_command (key)) {
action = tile_action_new (TILE (this), upgrade_trigger, _("Upgrade"), 0);
action = tile_action_new (TILE (this), upgrade_trigger, _("Upgrade"), TILE_ACTION_OPENS_NEW_WINDOW);
actions [APPLICATION_TILE_ACTION_UPGRADE_PACKAGE] = action;
menu_item = GTK_WIDGET (tile_action_get_menu_item (action));
gtk_container_add (menu_ctnr, menu_item);
......@@ -440,7 +440,7 @@ application_tile_setup (ApplicationTile *this, const gchar *gconf_prefix)
key = "/apps/main-menu/uninstall_package_command";
if (verify_package_management_command (key)) {
action = tile_action_new (TILE (this), uninstall_trigger, _("Uninstall"), 0);
action = tile_action_new (TILE (this), uninstall_trigger, _("Uninstall"), TILE_ACTION_OPENS_NEW_WINDOW);
actions [APPLICATION_TILE_ACTION_UNINSTALL_PACKAGE] = action;
menu_item = GTK_WIDGET (tile_action_get_menu_item (action));
gtk_container_add (menu_ctnr, menu_item);
......
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