Commit b62a6452 authored by Jim Krehl's avatar Jim Krehl
Browse files

svn path=/branches/version-2/; revision=142



svn path=/branches/version-2/; revision=142
parent 6954e8d6
......@@ -493,11 +493,16 @@ create_status_section (MainMenuUI *this)
GtkContainer *ctnr;
GtkWidget *tile;
gint icon_width;
ctnr = GTK_CONTAINER (glade_xml_get_widget (
priv->main_menu_xml, "hard-drive-status-container"));
tile = hard_drive_status_tile_new ();
gtk_icon_size_lookup (GTK_ICON_SIZE_DND, & icon_width, NULL);
gtk_widget_set_size_request (tile, 6 * icon_width, -1);
g_signal_connect (
G_OBJECT (tile), "tile-action-triggered",
G_CALLBACK (tile_action_triggered_cb), this);
......@@ -509,6 +514,8 @@ create_status_section (MainMenuUI *this)
priv->main_menu_xml, "network-status-container"));
tile = network_status_tile_new ();
gtk_widget_set_size_request (tile, 6 * icon_width, -1);
g_signal_connect (
G_OBJECT (tile), "tile-action-triggered",
G_CALLBACK (tile_action_triggered_cb), this);
......@@ -751,6 +758,8 @@ connect_to_tile_triggers (MainMenuUI *this, TileTable *table)
gulong handler_id;
gint icon_width;
g_object_get (G_OBJECT (table), TILE_TABLE_TILES_PROP, & tiles, NULL);
......@@ -763,6 +772,10 @@ connect_to_tile_triggers (MainMenuUI *this, TileTable *table)
g_signal_connect (
G_OBJECT (node->data), "tile-action-triggered",
G_CALLBACK (tile_action_triggered_cb), this);
gtk_icon_size_lookup (GTK_ICON_SIZE_DND, & icon_width, NULL);
gtk_widget_set_size_request (GTK_WIDGET (node->data), 6 * icon_width, -1);
}
}
......
......@@ -21,6 +21,7 @@
#include "tile-table.h"
#include "tile.h"
#include "nameplate-tile.h"
G_DEFINE_TYPE (TileTable, tile_table, GTK_TYPE_TABLE)
......@@ -218,6 +219,8 @@ replace_tiles (TileTable *this, GList *tiles)
GtkWidget *tile;
gulong handler_id;
GtkSizeGroup *icon_size_group;
GList *node;
......@@ -228,6 +231,8 @@ replace_tiles (TileTable *this, GList *tiles)
priv->tiles = NULL;
icon_size_group = gtk_size_group_new (GTK_SIZE_GROUP_HORIZONTAL);
for (node = tiles; node; node = node->next) {
g_assert (IS_TILE (node->data));
......@@ -263,6 +268,9 @@ replace_tiles (TileTable *this, GList *tiles)
G_CALLBACK (tile_activated_cb), NULL);
priv->tiles = g_list_append (priv->tiles, tile);
if (IS_NAMEPLATE_TILE (node->data))
gtk_size_group_add_widget (icon_size_group, NAMEPLATE_TILE (node->data)->image);
}
update_bins (this);
......
Supports Markdown
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