pidgin/gtkblist.c

branch
cpw.qulogic.gtk3
changeset 32430
b4b1a2c14325
parent 32429
fa0f0fd12f36
child 32433
f539a2c083b2
equal deleted inserted replaced
32429:fa0f0fd12f36 32430:b4b1a2c14325
6027 gtk_box_pack_start(GTK_BOX(gtkblist->vbox), ebox, FALSE, FALSE, 0); 6027 gtk_box_pack_start(GTK_BOX(gtkblist->vbox), ebox, FALSE, FALSE, 0);
6028 gtkblist->headline_hbox = gtk_hbox_new(FALSE, 3); 6028 gtkblist->headline_hbox = gtk_hbox_new(FALSE, 3);
6029 gtk_container_set_border_width(GTK_CONTAINER(gtkblist->headline_hbox), 6); 6029 gtk_container_set_border_width(GTK_CONTAINER(gtkblist->headline_hbox), 6);
6030 gtk_container_add(GTK_CONTAINER(ebox), gtkblist->headline_hbox); 6030 gtk_container_add(GTK_CONTAINER(ebox), gtkblist->headline_hbox);
6031 gtkblist->headline_image = gtk_image_new_from_pixbuf(NULL); 6031 gtkblist->headline_image = gtk_image_new_from_pixbuf(NULL);
6032 gtk_misc_set_alignment(GTK_MISC(gtkblist->headline_image), 0.0, 0); 6032 gtk_misc_set_alignment(GTK_MISC(gtkblist->headline_image), 0.5, 0.5);
6033 gtkblist->headline_label = gtk_label_new(NULL); 6033 gtkblist->headline_label = gtk_label_new(NULL);
6034 gtk_widget_set_size_request(gtkblist->headline_label,
6035 purple_prefs_get_int(PIDGIN_PREFS_ROOT "/blist/width")-25,-1);
6036 gtk_label_set_line_wrap(GTK_LABEL(gtkblist->headline_label), TRUE); 6034 gtk_label_set_line_wrap(GTK_LABEL(gtkblist->headline_label), TRUE);
6037 gtk_box_pack_start(GTK_BOX(gtkblist->headline_hbox), gtkblist->headline_image, FALSE, FALSE, 0); 6035 gtk_box_pack_start(GTK_BOX(gtkblist->headline_hbox), gtkblist->headline_image, FALSE, FALSE, 0);
6038 gtk_box_pack_start(GTK_BOX(gtkblist->headline_hbox), gtkblist->headline_label, TRUE, TRUE, 0); 6036 gtk_box_pack_start(GTK_BOX(gtkblist->headline_hbox), gtkblist->headline_label, TRUE, TRUE, 0);
6039 g_signal_connect(gtkblist->headline_label, /* connecting on headline_hbox doesn't work, because 6037 g_signal_connect(gtkblist->headline_label, /* connecting on headline_hbox doesn't work, because
6040 the signal is not emitted when theme is changed */ 6038 the signal is not emitted when theme is changed */

mercurial