comparison src/pan-view.c @ 27:9c24765c2d3a

Sat Apr 2 17:28:16 2005 John Ellis <johne@verizon.net> * image.c (image_options_set): Update PixbufRenderer parent window so that changing 'fit window to image' option works. * pan-view.c (pan_window_image_zoom_cb): Use same zoom text display as for main windows. * pixbuf-renderer.c: Fix (re-implement) check for maximized window state. Fix pr_source_tile_visible() calculation which was using the x axis where it should be y. Add redrawn return value to pr_zoom_clamp() and use that value in pr_zoom_sync() to pass pr_redraw correct args. ##### Note: GQview CVS on sourceforge is not always up to date, please use ##### ##### an offical release when making enhancements and translation updates. #####
author gqview
date Sat, 02 Apr 2005 22:44:34 +0000
parents 104e34f9ab1f
children 8a8ec4b3e769
comparison
equal deleted inserted replaced
26:acd9885ebd78 27:9c24765c2d3a
2963 g_object_unref(G_OBJECT(layout)); 2963 g_object_unref(G_OBJECT(layout));
2964 } 2964 }
2965 } 2965 }
2966 g_list_free(list); 2966 g_list_free(list);
2967 2967
2968 if (0) 2968 #if 0
2969 { 2969 if (x%512 == 0 && y%512 == 0)
2970 static gint count = 0; 2970 {
2971 PangoLayout *layout; 2971 PangoLayout *layout;
2972 gchar *buf; 2972 gchar *buf;
2973 2973
2974 layout = gtk_widget_create_pango_layout((GtkWidget *)pr, NULL); 2974 layout = gtk_widget_create_pango_layout((GtkWidget *)pr, NULL);
2975 2975
2980 g_free(buf); 2980 g_free(buf);
2981 2981
2982 pixbuf_draw_layout(pixbuf, layout, (GtkWidget *)pr, 0, 0, 0, 0, 0, 255); 2982 pixbuf_draw_layout(pixbuf, layout, (GtkWidget *)pr, 0, 0, 0, 0, 0, 255);
2983 2983
2984 g_object_unref(G_OBJECT(layout)); 2984 g_object_unref(G_OBJECT(layout));
2985 2985 }
2986 count++; 2986 #endif
2987 }
2988 2987
2989 return TRUE; 2988 return TRUE;
2990 } 2989 }
2991 2990
2992 static void pan_window_dispose_tile_cb(PixbufRenderer *pr, gint x, gint y, 2991 static void pan_window_dispose_tile_cb(PixbufRenderer *pr, gint x, gint y,
4045 static void pan_window_image_zoom_cb(PixbufRenderer *pr, gdouble zoom, gpointer data) 4044 static void pan_window_image_zoom_cb(PixbufRenderer *pr, gdouble zoom, gpointer data)
4046 { 4045 {
4047 PanWindow *pw = data; 4046 PanWindow *pw = data;
4048 gchar *text; 4047 gchar *text;
4049 4048
4050 #if 0 4049 text = image_zoom_get_as_text(pw->imd);
4051 text = image_zoom_get_as_text(imd);
4052 #endif
4053 text = g_strdup_printf("%.2f", zoom);
4054 gtk_label_set_text(GTK_LABEL(pw->label_zoom), text); 4050 gtk_label_set_text(GTK_LABEL(pw->label_zoom), text);
4055 g_free(text); 4051 g_free(text);
4056 } 4052 }
4057 4053
4058 static void pan_window_image_scroll_notify_cb(PixbufRenderer *pr, gpointer data) 4054 static void pan_window_image_scroll_notify_cb(PixbufRenderer *pr, gpointer data)