]> git.pld-linux.org Git - packages/eog.git/commitdiff
- Xiniam fixes.
authorkloczek <kloczek@pld-linux.org>
Sun, 25 Aug 2002 21:32:22 +0000 (21:32 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    eog-sane-window-size.patch -> 1.1

eog-sane-window-size.patch [new file with mode: 0644]

diff --git a/eog-sane-window-size.patch b/eog-sane-window-size.patch
new file mode 100644 (file)
index 0000000..09b9273
--- /dev/null
@@ -0,0 +1,33 @@
+diff -Nrc -x *~ eog-0.6.orig/src/window.c eog-0.6/src/window.c
+*** eog-0.6.orig/src/window.c  Wed Feb  7 11:13:37 2001
+--- eog-0.6/src/window.c       Tue Apr 10 00:07:21 2001
+***************
+*** 785,790 ****
+--- 785,791 ----
+       char *fname;
+       gboolean free_fname;
+       GtkWidget *view;
++      int width;
+  
+       g_return_val_if_fail (window != NULL, FALSE);
+       g_return_val_if_fail (IS_WINDOW (window), FALSE);
+***************
+*** 812,817 ****
+--- 813,829 ----
+               fname = _("Eye of Gnome");
+  
+       gtk_window_set_title (GTK_WINDOW (window), fname);
++ 
++      width = 45 + MIN (gdk_pixbuf_get_width (image->pixbuf),
++                        ((gdk_screen_width () - 45) * 0.8));
++      width = MAX (width, 261);
++ 
++      gtk_widget_set_usize (GTK_WIDGET (window),
++                            width,
++                            120 + MIN (gdk_pixbuf_get_height (image->pixbuf),
++                                       ((gdk_screen_height () - 120) * 0.8)));
++      /* printf ("%d %d\n", gdk_pixbuf_get_width (image->pixbuf),
++              gdk_pixbuf_get_height (image->pixbuf) ); */
+  
+       if (free_fname)
+               g_free (fname);
This page took 0.034326 seconds and 4 git commands to generate.