Package: celestia-gnome
Version: 1.6.0+dfsg-2
Severity: normal
Tags: upstream patch


The dialog window invoked by Options->View Options menu entry is deleted when
you press the "close" window manager's button on it. But function responsible
to show this dialog expects that the dialog is not deleted but hidden (and when
you press window button "OK" it really gets hidden). My trivial patch adds
gtk_widget_hide_on_delete() signal handler for "delete-event", and it works
like expected.


-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores)
Locale: LANG=be_BY.UTF-8, LC_CTYPE=be_BY.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages celestia-gnome depends on:
ii  celestia-common           1.6.0+dfsg-2   Datafiles for Celestia, a real-tim
ii  gconf2                    2.28.1-5       GNOME configuration database syste
ii  libc6                     2.11.2-7       Embedded GNU C Library: Shared lib
ii  libcairo2                 1.8.10-6       The Cairo 2D vector graphics libra
ii  libgconf2-4               2.28.1-5       GNOME configuration database syste
ii  libgl1-mesa-glx [libgl1]  7.8.2-2        A free implementation of the OpenG
ii  libglib2.0-0              2.24.2-1       The GLib library of C routines
ii  libglu1-mesa [libglu1]    7.8.2-2        The OpenGL utility library (GLU)
ii  libgnome2-0               2.30.0-1       The GNOME library - runtime files
ii  libgnomeui-0              2.24.3-1       The GNOME libraries (User Interfac
ii  libgtk2.0-0               2.20.1-2       The GTK+ graphical user interface 
ii  libgtkglext1              1.2.0-1.1      OpenGL Extension to GTK+ (shared l
ii  libjpeg62                 6b1-1          The Independent JPEG Group's JPEG 
ii  liblua5.1-0               5.1.4-5        Simple, extensible, embeddable pro
ii  libogg0                   1.2.0~dfsg-1   Ogg bitstream library
ii  libpango1.0-0             1.28.3-1       Layout and rendering of internatio
ii  libpng12-0                1.2.44-1       PNG library - runtime
ii  libstdc++6                4.4.5-6        The GNU Standard C++ Library v3
ii  libtheora0                1.1.1+dfsg.1-3 The Theora Video Compression Codec

celestia-gnome recommends no packages.

Versions of packages celestia-gnome suggests:
ii  stellarium                    0.10.5-1   real-time photo-realistic sky gene

-- no debconf information
diff -uNr gtk.2/dialog-options.cpp gtk/dialog-options.cpp
--- celestia-1.6.0+dfsg~/src/celestia/gtk/dialog-options.cpp	2010-11-03 13:42:24.896584100 +0200
+++ celestia-1.6.0+dfsg/src/celestia/gtk/dialog-options.cpp	2010-11-04 14:09:35.249213500 +0200
@@ -148,6 +148,8 @@
 	toggleButtonsFromAG(actionsVerbosity, G_N_ELEMENTS(actionsVerbosity), app->agVerbosity, infoBox);
 	toggleButtonsFromAG(actionsAmbientLight, G_N_ELEMENTS(actionsAmbientLight), app->agAmbient, ambientBox);
 
+	g_signal_connect(app->optionDialog, "delete-event",
+	                 G_CALLBACK(gtk_widget_hide_on_delete), GTK_WIDGET(app->optionDialog));
 	g_signal_connect(app->optionDialog, "response",
 	                 G_CALLBACK(gtk_widget_hide), GTK_WIDGET(app->optionDialog));
 

Reply via email to