Package: sgt-puzzles
Version: 8541-1
Severity: minor
Tags: patch

Modal dialogs from sgt-puzzles (like Game->Specific, Game->Random Seed,
Type->Custom and Help->About) are resizable. This is because Gtk windows are
user resizable by default. However, because these dialog are obviously not
meant to be resizable (see the widget layout break when you try) I think it
makes sense to disable this functionality. Included patch clears the
resizable flag for the message-box() and get-config() windows.

--- gtk.c.ORIG  2009-05-31 12:36:47.000000000 +0200
+++ gtk.c       2009-05-31 12:38:42.000000000 +0200
@@ -850,6 +850,7 @@ int message_box(GtkWidget *parent, char 
     gtk_signal_connect(GTK_OBJECT(window), "destroy",
                        GTK_SIGNAL_FUNC(window_destroy), NULL);
     gtk_window_set_modal(GTK_WINDOW(window), TRUE);
+    gtk_window_set_resizable(GTK_WINDOW(window), FALSE);
     gtk_window_set_transient_for(GTK_WINDOW(window), GTK_WINDOW(parent));
     /* set_transient_window_pos(parent, window); */
     gtk_widget_show(window);
@@ -1084,6 +1085,7 @@ static int get_config(frontend *fe, int 
     gtk_signal_connect(GTK_OBJECT(fe->cfgbox), "key_press_event",
                       GTK_SIGNAL_FUNC(win_key_press), cancel);
     gtk_window_set_modal(GTK_WINDOW(fe->cfgbox), TRUE);
+    gtk_window_set_resizable(GTK_WINDOW(fe->cfgbox), FALSE);
     gtk_window_set_transient_for(GTK_WINDOW(fe->cfgbox),
                                 GTK_WINDOW(fe->window));
     /* set_transient_window_pos(fe->window, fe->cfgbox); */


Arjan


-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.27.21 (PREEMPT)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages sgt-puzzles depends on:
ii  libatk1.0-0                   1.26.0-1   The ATK accessibility toolkit
ii  libc6                         2.9-13     GNU C Library: Shared libraries
ii  libcairo2                     1.8.6-2+b1 The Cairo 2D vector graphics libra
ii  libfontconfig1                2.6.0-3    generic font configuration library
ii  libfreetype6                  2.3.9-5    FreeType 2 font engine, shared lib
ii  libglib2.0-0                  2.20.3-1   The GLib library of C routines
ii  libgtk2.0-0                   2.16.1-2   The GTK+ graphical user interface 
ii  libpango1.0-0                 1.24.2-1   Layout and rendering of internatio

Versions of packages sgt-puzzles recommends:
ii  epiphany-webkit [www-browser 2.27.2-2    Intuitive GNOME web browser - WebK
ii  iceweasel [www-browser]      3.0.9-1     lightweight web browser based on M
ii  links2 [www-browser]         2.2-1+b1    Web browser running in both graphi
ii  lynx-cur [www-browser]       2.8.7pre4-1 Text-mode WWW Browser with NLS sup
ii  w3m [www-browser]            0.5.2-2+b1  WWW browsable pager with excellent
ii  yelp                         2.24.0-2    Help browser for GNOME 2

sgt-puzzles suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to