]> git.pld-linux.org Git - packages/eog.git/blob - eog-sane-window-size.patch
- updated server file location, release 2
[packages/eog.git] / eog-sane-window-size.patch
1 diff -Nrc -x *~ eog-0.6.orig/src/window.c eog-0.6/src/window.c
2 *** eog-0.6.orig/src/window.c   Wed Feb  7 11:13:37 2001
3 --- eog-0.6/src/window.c        Tue Apr 10 00:07:21 2001
4 ***************
5 *** 785,790 ****
6 --- 785,791 ----
7         char *fname;
8         gboolean free_fname;
9         GtkWidget *view;
10 +       int width;
11   
12         g_return_val_if_fail (window != NULL, FALSE);
13         g_return_val_if_fail (IS_WINDOW (window), FALSE);
14 ***************
15 *** 812,817 ****
16 --- 813,829 ----
17                 fname = _("Eye of Gnome");
18   
19         gtk_window_set_title (GTK_WINDOW (window), fname);
20
21 +       width = 45 + MIN (gdk_pixbuf_get_width (image->pixbuf),
22 +                         ((gdk_screen_width () - 45) * 0.8));
23 +       width = MAX (width, 261);
24
25 +       gtk_widget_set_usize (GTK_WIDGET (window),
26 +                             width,
27 +                             120 + MIN (gdk_pixbuf_get_height (image->pixbuf),
28 +                                        ((gdk_screen_height () - 120) * 0.8)));
29 +       /* printf ("%d %d\n", gdk_pixbuf_get_width (image->pixbuf),
30 +               gdk_pixbuf_get_height (image->pixbuf) ); */
31   
32         if (free_fname)
33                 g_free (fname);
This page took 0.06316 seconds and 3 git commands to generate.