comparison pidgin/gtkconv.c @ 19306:16cad7ba399c

Set size request on infopane's hbox instead of hbox itself. This way, when we hide the hbox to edit, the pane remains 32px tall
author Sean Egan <seanegan@gmail.com>
date Fri, 17 Aug 2007 18:09:54 +0000
parents 758b71dcd354
children 03ff8d52ab2e
comparison
equal deleted inserted replaced
19304:9e9f3442764c 19306:16cad7ba399c
4543 gtk_list_store_append(gtkconv->infopane_model, &(gtkconv->infopane_iter)); 4543 gtk_list_store_append(gtkconv->infopane_model, &(gtkconv->infopane_iter));
4544 gtk_box_pack_start(GTK_BOX(gtkconv->infopane_hbox), gtkconv->infopane, TRUE, TRUE, 0); 4544 gtk_box_pack_start(GTK_BOX(gtkconv->infopane_hbox), gtkconv->infopane, TRUE, TRUE, 0);
4545 path = gtk_tree_path_new_from_string("0"); 4545 path = gtk_tree_path_new_from_string("0");
4546 gtk_cell_view_set_displayed_row(GTK_CELL_VIEW(gtkconv->infopane), path); 4546 gtk_cell_view_set_displayed_row(GTK_CELL_VIEW(gtkconv->infopane), path);
4547 gtk_tree_path_free(path); 4547 gtk_tree_path_free(path);
4548 gtk_widget_set_size_request(gtkconv->infopane, -1, 32); 4548 gtk_widget_set_size_request(gtkconv->infopane_hbox, -1, 32);
4549 gtk_widget_show(gtkconv->infopane); 4549 gtk_widget_show(gtkconv->infopane);
4550 4550
4551 rend = gtk_cell_renderer_pixbuf_new(); 4551 rend = gtk_cell_renderer_pixbuf_new();
4552 gtk_cell_layout_pack_start(GTK_CELL_LAYOUT(gtkconv->infopane), rend, FALSE); 4552 gtk_cell_layout_pack_start(GTK_CELL_LAYOUT(gtkconv->infopane), rend, FALSE);
4553 gtk_cell_layout_set_attributes(GTK_CELL_LAYOUT(gtkconv->infopane), rend, "pixbuf", CONV_ICON_COLUMN, NULL); 4553 gtk_cell_layout_set_attributes(GTK_CELL_LAYOUT(gtkconv->infopane), rend, "pixbuf", CONV_ICON_COLUMN, NULL);