summaryrefslogtreecommitdiff
path: root/packages/obsolete/gaim/files/08-prefs-dialog.patch
diff options
context:
space:
mode:
authorMarcin Juszkiewicz <hrw@openembedded.org>2008-02-21 09:40:00 +0000
committerMarcin Juszkiewicz <hrw@openembedded.org>2008-02-21 09:40:00 +0000
commit387f7d8d065b710036dcddf2be1b6d1809133acd (patch)
treec026ca4fa9e7711969ff63a47f3aa2317cd30ceb /packages/obsolete/gaim/files/08-prefs-dialog.patch
parentbf4b8015982e2cd26049a340f48a2191fd431c11 (diff)
parent6836f43ea4f5dffc94d623c01cf3c39b56af8eef (diff)
merge of '1d187fa547c16ed9ca31c2975f54b8812e88b0f6'
and '7cc9c98056838b4d2eb67baf00c13e220ae94a0a'
Diffstat (limited to 'packages/obsolete/gaim/files/08-prefs-dialog.patch')
-rw-r--r--packages/obsolete/gaim/files/08-prefs-dialog.patch64
1 files changed, 64 insertions, 0 deletions
diff --git a/packages/obsolete/gaim/files/08-prefs-dialog.patch b/packages/obsolete/gaim/files/08-prefs-dialog.patch
new file mode 100644
index 0000000000..a8fcb89311
--- /dev/null
+++ b/packages/obsolete/gaim/files/08-prefs-dialog.patch
@@ -0,0 +1,64 @@
+--- gaim.ori/src/gtkprefs.c 2005-09-05 08:28:17.000000000 +0200
++++ gaim/src/gtkprefs.c 2005-09-05 09:06:27.000000000 +0200
+@@ -2108,12 +2108,18 @@
+ if (icon)
+ g_object_unref(icon);
+
+-#if GTK_CHECK_VERSION(2,4,0)
+- return gtk_notebook_append_page(GTK_NOTEBOOK(prefsnotebook), page, gtk_label_new(text));
+-#else
+- gtk_notebook_append_page(GTK_NOTEBOOK(prefsnotebook), page, gtk_label_new(text));
+- return gtk_notebook_page_num(GTK_NOTEBOOK(prefsnotebook), page);
+-#endif
++ //Add a scrolled window around the page contents
++ GtkWidget *sw;
++ sw = gtk_scrolled_window_new(NULL, NULL);
++ gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(sw),
++ GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
++ gtk_scrolled_window_set_shadow_type(GTK_SCROLLED_WINDOW(sw),
++ GTK_SHADOW_NONE);
++ //gtk_widget_set_size_request(sw, -1, 200);
++ gtk_scrolled_window_add_with_viewport(GTK_SCROLLED_WINDOW(sw), page);
++
++
++ return gtk_notebook_append_page(GTK_NOTEBOOK(prefsnotebook), sw, gtk_label_new(text));
+ }
+
+ static void prefs_notebook_init() {
+@@ -2146,9 +2152,9 @@
+ void gaim_gtk_prefs_show(void)
+ {
+ GtkWidget *vbox;
+- GtkWidget *bbox;
++ //GtkWidget *bbox;
+ GtkWidget *notebook;
+- GtkWidget *button;
++ //GtkWidget *button;
+
+ if (prefs) {
+ gtk_window_present(GTK_WINDOW(prefs));
+@@ -2176,11 +2182,13 @@
+
+ /* The notebook */
+ prefsnotebook = notebook = gtk_notebook_new ();
+- gtk_box_pack_start (GTK_BOX (vbox), notebook, FALSE, FALSE, 0);
++ gtk_notebook_set_scrollable(GTK_NOTEBOOK(prefsnotebook), TRUE);
++ gtk_box_pack_start (GTK_BOX (vbox), notebook, TRUE, TRUE, 0);
+
+
+ /* The buttons to press! */
+- bbox = gtk_hbutton_box_new();
++ //To save screen estate we will do without a close button
++ /*bbox = gtk_hbutton_box_new();
+ gtk_box_set_spacing(GTK_BOX(bbox), GAIM_HIG_BOX_SPACE);
+ gtk_button_box_set_layout(GTK_BUTTON_BOX(bbox), GTK_BUTTONBOX_END);
+ gtk_box_pack_start(GTK_BOX(vbox), bbox, FALSE, FALSE, 0);
+@@ -2190,7 +2198,7 @@
+ g_signal_connect_swapped(G_OBJECT(button), "clicked",
+ G_CALLBACK(gtk_widget_destroy), prefs);
+ gtk_box_pack_start(GTK_BOX(bbox), button, FALSE, FALSE, 0);
+- gtk_widget_show(button);
++ gtk_widget_show(button);*/
+
+ prefs_notebook_init();
+