summaryrefslogtreecommitdiff
path: root/packages/gaim/files/08-prefs-dialog.patch
diff options
context:
space:
mode:
Diffstat (limited to 'packages/gaim/files/08-prefs-dialog.patch')
-rw-r--r--packages/gaim/files/08-prefs-dialog.patch63
1 files changed, 63 insertions, 0 deletions
diff --git a/packages/gaim/files/08-prefs-dialog.patch b/packages/gaim/files/08-prefs-dialog.patch
new file mode 100644
index 0000000000..15c66b583a
--- /dev/null
+++ b/packages/gaim/files/08-prefs-dialog.patch
@@ -0,0 +1,63 @@
+Index: gaim/src/gtkprefs.c
+===================================================================
+--- gaim.orig/src/gtkprefs.c 2005-08-21 01:59:55.000000000 +0200
++++ gaim/src/gtkprefs.c 2005-08-21 02:49:51.635872168 +0200
+@@ -2106,8 +2106,19 @@
+ g_object_unref(pixbuf);
+ if (icon)
+ g_object_unref(icon);
+-
+- return gtk_notebook_append_page(GTK_NOTEBOOK(prefsnotebook), page, gtk_label_new(text));
++
++ //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() {
+@@ -2140,9 +2151,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));
+@@ -2170,11 +2181,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);
+@@ -2184,7 +2197,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();
+