comparison src/gtkstatusbox.c @ 13737:2b9aa05b6fa1

[gaim-migrate @ 16148] Don't set the statusbox icon before it's created committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sun, 07 May 2006 21:19:46 +0000
parents 1a965241c8b9
children 599c0964c783
comparison
equal deleted inserted replaced
13736:14d005eedb30 13737:2b9aa05b6fa1
912 status_box->dropdown_store = gtk_list_store_new(NUM_COLUMNS, G_TYPE_INT, GDK_TYPE_PIXBUF, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_POINTER); 912 status_box->dropdown_store = gtk_list_store_new(NUM_COLUMNS, G_TYPE_INT, GDK_TYPE_PIXBUF, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_POINTER);
913 gtk_combo_box_set_model(GTK_COMBO_BOX(status_box), GTK_TREE_MODEL(status_box->dropdown_store)); 913 gtk_combo_box_set_model(GTK_COMBO_BOX(status_box), GTK_TREE_MODEL(status_box->dropdown_store));
914 gtk_cell_view_set_model(GTK_CELL_VIEW(status_box->cell_view), GTK_TREE_MODEL(status_box->store)); 914 gtk_cell_view_set_model(GTK_CELL_VIEW(status_box->cell_view), GTK_TREE_MODEL(status_box->store));
915 gtk_combo_box_set_wrap_width(GTK_COMBO_BOX(status_box), 0); 915 gtk_combo_box_set_wrap_width(GTK_COMBO_BOX(status_box), 0);
916 gtk_list_store_append(status_box->store, &(status_box->iter)); 916 gtk_list_store_append(status_box->store, &(status_box->iter));
917 gtk_gaim_status_box_refresh(status_box);
918 917
919 gtk_container_add(GTK_CONTAINER(status_box->toggle_button), status_box->hbox); 918 gtk_container_add(GTK_CONTAINER(status_box->toggle_button), status_box->hbox);
920 gtk_box_pack_start(GTK_BOX(status_box->hbox), status_box->cell_view, TRUE, TRUE, 0); 919 gtk_box_pack_start(GTK_BOX(status_box->hbox), status_box->cell_view, TRUE, TRUE, 0);
921 gtk_box_pack_start(GTK_BOX(status_box->hbox), status_box->vsep, FALSE, FALSE, 0); 920 gtk_box_pack_start(GTK_BOX(status_box->hbox), status_box->vsep, FALSE, FALSE, 0);
922 gtk_box_pack_start(GTK_BOX(status_box->hbox), status_box->arrow, FALSE, FALSE, 0); 921 gtk_box_pack_start(GTK_BOX(status_box->hbox), status_box->arrow, FALSE, FALSE, 0);
983 gtk_combo_box_set_row_separator_func(GTK_COMBO_BOX(status_box), dropdown_store_row_separator_func, NULL, NULL); 982 gtk_combo_box_set_row_separator_func(GTK_COMBO_BOX(status_box), dropdown_store_row_separator_func, NULL, NULL);
984 #endif 983 #endif
985 984
986 cache_pixbufs(status_box); 985 cache_pixbufs(status_box);
987 gtk_gaim_status_box_regenerate(status_box); 986 gtk_gaim_status_box_regenerate(status_box);
987 gtk_gaim_status_box_refresh(status_box);
988 988
989 gaim_prefs_connect_callback(status_box, "/core/savedstatus/current", 989 gaim_prefs_connect_callback(status_box, "/core/savedstatus/current",
990 current_status_pref_changed_cb, status_box); 990 current_status_pref_changed_cb, status_box);
991 gaim_prefs_connect_callback(status_box, "/gaim/gtk/blist/show_buddy_icons", 991 gaim_prefs_connect_callback(status_box, "/gaim/gtk/blist/show_buddy_icons",
992 buddy_list_details_pref_changed_cb, status_box); 992 buddy_list_details_pref_changed_cb, status_box);