Commit f8c8a448 authored by Scott Reeves's avatar Scott Reeves

Fixes for launching twice and no GenericName

svn path=/trunk/; revision=125
parent 4ab011ca
2007-01-25 Scott Reeves <sreeves@novell.com>
* control-center/src/control-center.c: - stop CC common tasks from
launching twic
* main-menu/src/system-tile.c: - patch from Otavio Salvador for
system-tile's launched twice.
* libslab/application-tile.c: - When no GenericName is present then
just show and center the Name
2007-01-19 Scott Reeves <sreeves@novell.com>
* control-center/src/control-center.c
* libslab/app-shell.c:
......
......@@ -91,6 +91,9 @@ get_actions_list ()
void
handle_static_action_clicked (Tile * tile, TileEvent * event, gpointer data)
{
if (event->type == TILE_EVENT_ACTIVATED_DOUBLE_CLICK)
return;
gchar *temp;
AppShellData *app_data = (AppShellData *) data;
......
......@@ -280,7 +280,10 @@ application_tile_setup (ApplicationTile *this)
atk_object_set_description (accessible, desc);
header = create_header (name);
subheader = create_subheader (desc);
if (desc) /*if no GenericName then just show and center the Name */
subheader = create_subheader (desc);
else
subheader = NULL;
context_menu = GTK_MENU (gtk_menu_new ());
......
......@@ -294,7 +294,7 @@ tile_leave (GtkButton * widget)
static void
tile_clicked (GtkButton * widget)
{
TileEvent *tile_event;
TileEvent *tile_event;
tile_event = g_new0 (TileEvent, 1);
tile_event->type = TILE_EVENT_ACTIVATED_DOUBLE_CLICK;
......
......@@ -250,7 +250,8 @@ create_header (const gchar * name)
static void
system_tile_activated (Tile * tile, TileEvent * event)
{
tile_trigger_action_with_time (tile, tile->default_action, event->time);
if (event->type != TILE_EVENT_ACTIVATED_DOUBLE_CLICK)
tile_trigger_action_with_time (tile, tile->default_action, event->time);
}
static void
......
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