[gthumb] Picasa export dialog too big Maximize on small resolutions (netbook)
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] Picasa export dialog too big Maximize on small resolutions (netbook)
- Date: Fri, 14 May 2010 11:29:22 +0000 (UTC)
commit a72f3c8fa09cb0cfdabac7c1af914e2dcc937dfc
Author: Matthias Hawran <matthias hawran net>
Date: Tue May 11 12:20:49 2010 +0200
Picasa export dialog too big Maximize on small resolutions (netbook)
[bug #618262]
.../picasaweb/data/ui/export-to-picasaweb.ui | 7 ++-----
extensions/picasaweb/dlg-export-to-picasaweb.c | 12 ++++++++++++
2 files changed, 14 insertions(+), 5 deletions(-)
---
diff --git a/extensions/picasaweb/data/ui/export-to-picasaweb.ui b/extensions/picasaweb/data/ui/export-to-picasaweb.ui
index 710a7c6..46cb3a0 100644
--- a/extensions/picasaweb/data/ui/export-to-picasaweb.ui
+++ b/extensions/picasaweb/data/ui/export-to-picasaweb.ui
@@ -1,4 +1,4 @@
-<?xml version="1.0" encoding="UTF-8"?>
+<?xml version="1.0"?>
<interface>
<requires lib="gtk+" version="2.18"/>
<!-- interface-naming-policy project-wide -->
@@ -43,8 +43,6 @@
<property name="spacing">12</property>
<child>
<object class="GtkVBox" id="images_box">
- <property name="width_request">460</property>
- <property name="height_request">340</property>
<property name="visible">True</property>
<property name="spacing">3</property>
<child>
@@ -211,8 +209,7 @@
<property name="visible">True</property>
<property name="spacing">6</property>
<child>
- <object class="GtkScrolledWindow" id="scrolledwindow1">
- <property name="width_request">370</property>
+ <object class="GtkScrolledWindow" id="albums_scrolledwindow">
<property name="height_request">120</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
diff --git a/extensions/picasaweb/dlg-export-to-picasaweb.c b/extensions/picasaweb/dlg-export-to-picasaweb.c
index 1d7e8f3..d3eb495 100644
--- a/extensions/picasaweb/dlg-export-to-picasaweb.c
+++ b/extensions/picasaweb/dlg-export-to-picasaweb.c
@@ -861,6 +861,7 @@ dlg_export_to_picasaweb (GthBrowser *browser,
{
DialogData *data;
GtkTreeSelection *selection;
+ GdkScreen *screen;
GList *scan;
int n_total;
goffset total_size;
@@ -899,6 +900,17 @@ dlg_export_to_picasaweb (GthBrowser *browser,
NULL);
}
+ screen = gtk_widget_get_screen (data->dialog);
+ if (screen && gdk_screen_get_height (screen) < 768) {
+ /* maximize on netbooks */
+ gtk_window_maximize (GTK_WINDOW (data->dialog));
+ } else {
+ /* This should fit on a XGA/WXGA (height 768) screen
+ * with top and bottom panels */
+ gtk_window_set_default_size (GTK_WINDOW (data->dialog),
+ 580, 670);
+ }
+
data->file_list = NULL;
n_total = 0;
total_size = 0;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]