diff options
author | Xan Lopez <xan@src.gnome.org> | 2003-05-17 23:44:53 +0800 |
---|---|---|
committer | Xan Lopez <xan@src.gnome.org> | 2003-05-17 23:44:53 +0800 |
commit | 86aba5d21023eb60fe1357cea66c8bc553f51bde (patch) | |
tree | 1d0a329c9aa00665d21ef943473202e378db0026 /embed | |
parent | 36b6b34ca77a6349d90032e537d738e0233b7220 (diff) | |
download | gsoc2013-epiphany-86aba5d21023eb60fe1357cea66c8bc553f51bde.tar gsoc2013-epiphany-86aba5d21023eb60fe1357cea66c8bc553f51bde.tar.gz gsoc2013-epiphany-86aba5d21023eb60fe1357cea66c8bc553f51bde.tar.bz2 gsoc2013-epiphany-86aba5d21023eb60fe1357cea66c8bc553f51bde.tar.lz gsoc2013-epiphany-86aba5d21023eb60fe1357cea66c8bc553f51bde.tar.xz gsoc2013-epiphany-86aba5d21023eb60fe1357cea66c8bc553f51bde.tar.zst gsoc2013-epiphany-86aba5d21023eb60fe1357cea66c8bc553f51bde.zip |
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.
Diffstat (limited to 'embed')
-rwxr-xr-x | embed/find-dialog.c | 21 | ||||
-rw-r--r-- | embed/mozilla/FilePicker.cpp | 1 |
2 files changed, 20 insertions, 2 deletions
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) @@ -252,6 +254,20 @@ find_get_info (EphyDialog *dialog) } 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) { GdkPixbuf *icon; @@ -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 <glib/gconvert.h> #include <gtk/gtkmain.h> |