From 86aba5d21023eb60fe1357cea66c8bc553f51bde Mon Sep 17 00:00:00 2001 From: Xan Lopez Date: Sat, 17 May 2003 15:44:53 +0000 Subject: Do not allow to resize the dialog vertically, fixes #112727. Remove unused Do not allow to resize the dialog vertically, fixes #112727. Remove unused header. --- ChangeLog | 10 ++++++++++ embed/find-dialog.c | 21 ++++++++++++++++++++- embed/mozilla/FilePicker.cpp | 1 - 3 files changed, 30 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 972c35fc3..8582447f3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +2003-05-17 Xan Lopez + + * embed/find-dialog.c: (dialog_constrain_height), (impl_show): + + Do not allow to resize the dialog vertically, fixes #112727. + + * embed/mozilla/FilePicker.cpp: + + Remove unused header. + 2003-05-17 Marco Pesenti Gritti * src/ephy-window.c: (ephy_window_set_chrome): diff --git a/embed/find-dialog.c b/embed/find-dialog.c index 80d594502..9951d548d 100755 --- a/embed/find-dialog.c +++ b/embed/find-dialog.c @@ -14,6 +14,8 @@ * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + * + * $Id$ */ #include "find-dialog.h" @@ -162,7 +164,7 @@ find_update_nav (EphyDialog *dialog) FIND_DIALOG(dialog)->priv->can_go_prev); } -void static +static void ensure_constructed (FindDialog *dialog) { if (!dialog->priv->constructed) @@ -251,6 +253,20 @@ find_get_info (EphyDialog *dialog) find_dialog->priv->properties = properties; } +static void +dialog_constrain_height (FindDialog *dialog) +{ + GdkGeometry geometry; + GtkWindow *window = GTK_WINDOW (dialog->priv->window); + + /* Do not allow to resize the widget vertically */ + geometry.max_height = 0; + geometry.max_width = gdk_screen_get_width (gtk_widget_get_screen (window));; + gtk_window_set_geometry_hints (window, GTK_WIDGET (window), + &geometry, + GDK_HINT_MAX_SIZE); +} + static void impl_show (EphyDialog *dialog) { @@ -277,6 +293,9 @@ impl_show (EphyDialog *dialog) "find_dialog"); gtk_window_set_icon (GTK_WINDOW(find_dialog->priv->window), icon); g_object_unref (icon); + + dialog_constrain_height (find_dialog); + EPHY_DIALOG_CLASS (parent_class)->show (dialog); } diff --git a/embed/mozilla/FilePicker.cpp b/embed/mozilla/FilePicker.cpp index fb8a82313..e39419ac8 100644 --- a/embed/mozilla/FilePicker.cpp +++ b/embed/mozilla/FilePicker.cpp @@ -34,7 +34,6 @@ #include "ephy-string.h" #include "ephy-gui.h" -#include "eel-gconf-extensions.h" #include #include -- cgit v1.2.3