Mercurial > pidgin.yaz
comparison pidgin/gtkprefs.c @ 21889:a3f0c30eb0bf
propagate from branch 'im.pidgin.pidgin' (head 1716154a473ab645c7477f4285579df56d955fde)
to branch 'im.pidgin.pidgin.next.minor' (head 457a3a60abf75010d7855c1f25254e8118d38466)
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Tue, 18 Dec 2007 05:50:43 +0000 |
parents | 65ef019c000b b05a8f1db1c3 |
children | 1690d040addd c38d72677c8a |
comparison
equal
deleted
inserted
replaced
21857:c117352a6088 | 21889:a3f0c30eb0bf |
---|---|
2148 } | 2148 } |
2149 | 2149 |
2150 void pidgin_prefs_show(void) | 2150 void pidgin_prefs_show(void) |
2151 { | 2151 { |
2152 GtkWidget *vbox; | 2152 GtkWidget *vbox; |
2153 GtkWidget *bbox; | |
2154 GtkWidget *notebook; | 2153 GtkWidget *notebook; |
2155 GtkWidget *button; | 2154 GtkWidget *button; |
2156 | 2155 |
2157 if (prefs) { | 2156 if (prefs) { |
2158 gtk_window_present(GTK_WINDOW(prefs)); | 2157 gtk_window_present(GTK_WINDOW(prefs)); |
2164 /* (that should have been "effect," right?) */ | 2163 /* (that should have been "effect," right?) */ |
2165 | 2164 |
2166 /* Back to instant-apply! I win! BU-HAHAHA! */ | 2165 /* Back to instant-apply! I win! BU-HAHAHA! */ |
2167 | 2166 |
2168 /* Create the window */ | 2167 /* Create the window */ |
2169 prefs = pidgin_create_window(_("Preferences"), PIDGIN_HIG_BORDER, "preferences", FALSE); | 2168 prefs = pidgin_create_dialog(_("Preferences"), PIDGIN_HIG_BORDER, "preferences", FALSE); |
2170 g_signal_connect(G_OBJECT(prefs), "destroy", | 2169 g_signal_connect(G_OBJECT(prefs), "destroy", |
2171 G_CALLBACK(delete_prefs), NULL); | 2170 G_CALLBACK(delete_prefs), NULL); |
2172 | 2171 |
2173 vbox = gtk_vbox_new(FALSE, PIDGIN_HIG_BORDER); | 2172 vbox = pidgin_dialog_get_vbox_with_properties(GTK_DIALOG(prefs), FALSE, PIDGIN_HIG_BORDER); |
2174 gtk_container_add(GTK_CONTAINER(prefs), vbox); | |
2175 gtk_widget_show(vbox); | |
2176 | 2173 |
2177 /* The notebook */ | 2174 /* The notebook */ |
2178 prefsnotebook = notebook = gtk_notebook_new (); | 2175 prefsnotebook = notebook = gtk_notebook_new (); |
2179 gtk_box_pack_start (GTK_BOX (vbox), notebook, FALSE, FALSE, 0); | 2176 gtk_box_pack_start (GTK_BOX (vbox), notebook, FALSE, FALSE, 0); |
2180 gtk_widget_show(prefsnotebook); | 2177 gtk_widget_show(prefsnotebook); |
2181 | 2178 |
2182 /* The buttons to press! */ | 2179 button = pidgin_dialog_add_button(GTK_DIALOG(prefs), GTK_STOCK_CLOSE, NULL, NULL); |
2183 bbox = gtk_hbutton_box_new(); | |
2184 gtk_box_set_spacing(GTK_BOX(bbox), PIDGIN_HIG_BOX_SPACE); | |
2185 gtk_button_box_set_layout(GTK_BUTTON_BOX(bbox), GTK_BUTTONBOX_END); | |
2186 gtk_box_pack_start(GTK_BOX(vbox), bbox, FALSE, FALSE, 0); | |
2187 gtk_widget_show (bbox); | |
2188 | |
2189 button = gtk_button_new_from_stock (GTK_STOCK_CLOSE); | |
2190 g_signal_connect_swapped(G_OBJECT(button), "clicked", | 2180 g_signal_connect_swapped(G_OBJECT(button), "clicked", |
2191 G_CALLBACK(gtk_widget_destroy), prefs); | 2181 G_CALLBACK(gtk_widget_destroy), prefs); |
2192 gtk_box_pack_start(GTK_BOX(bbox), button, FALSE, FALSE, 0); | |
2193 gtk_widget_show(button); | |
2194 | 2182 |
2195 prefs_notebook_init(); | 2183 prefs_notebook_init(); |
2196 | 2184 |
2197 /* Show everything. */ | 2185 /* Show everything. */ |
2198 gtk_widget_show(prefs); | 2186 gtk_widget_show(prefs); |