svn path=/trunk/; revision=46
return FALSE;
}
+
#if 0
static void
main_window_session_protocol_connecting_cb (GossipSession *session,
gtk_cell_layout_set_attributes (GTK_CELL_LAYOUT (combo_box), renderer,
"icon-name", COL_ICON,
NULL);
+ g_object_set (renderer, "stock-size", GTK_ICON_SIZE_BUTTON, NULL);
+
renderer = gtk_cell_renderer_text_new ();
gtk_cell_layout_pack_start (GTK_CELL_LAYOUT (combo_box), renderer, TRUE);
gtk_cell_layout_set_attributes (GTK_CELL_LAYOUT (combo_box), renderer,
GtkIconTheme *theme;
GdkPixbuf *pixbuf = NULL;
GError *error = NULL;
+ gint w, h;
+ gint size = 48;
theme = gtk_icon_theme_get_default ();
+ if (gtk_icon_size_lookup (icon_size, &w, &h)) {
+ size = (w + h) / 2;
+ }
+
pixbuf = gtk_icon_theme_load_icon (theme,
icon_name,
- icon_size,
+ size,
0,
&error);
if (error) {