Mercurial > mplayer.hg
changeset 36066:2c0e238bc070
Don't allow the URL dialog to be vertically user-resizable.
Set the maximum height to the window height.
author | ib |
---|---|
date | Thu, 04 Apr 2013 19:42:17 +0000 |
parents | 070c711825ea |
children | bfa9e8b4eafe |
files | gui/dialog/url.c |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/gui/dialog/url.c Thu Apr 04 19:18:11 2013 +0000 +++ b/gui/dialog/url.c Thu Apr 04 19:42:17 2013 +0000 @@ -82,6 +82,7 @@ GtkWidget *Ok; GtkWidget *Cancel; GtkAccelGroup *accel_group; + GdkGeometry geometry; accel_group = gtk_accel_group_new(); @@ -116,6 +117,10 @@ Ok = gtkAddButton(MSGTR_Ok, hbuttonbox1); Cancel = gtkAddButton(MSGTR_Cancel, hbuttonbox1); + geometry.max_width = gdk_screen_get_width(gtk_widget_get_screen(URLDialog)); + geometry.max_height = -1; + gtk_window_set_geometry_hints(GTK_WINDOW(URLDialog), NULL, &geometry, GDK_HINT_MAX_SIZE); + gtk_widget_add_accelerator(Ok, "clicked", accel_group, GDK_Return, 0, GTK_ACCEL_VISIBLE); gtk_widget_add_accelerator(Cancel, "clicked", accel_group, GDK_Escape, 0, GTK_ACCEL_VISIBLE);