diff src/bar_exif.c @ 489:3809ffa3567b

Save state and width of exif, info and sort panels to rc file. Width is restored only if save windows dimensions is set.
author zas_
date Tue, 22 Apr 2008 22:44:10 +0000
parents 48c8e49b571c
children 00462776e9a2
line wrap: on
line diff
--- a/src/bar_exif.c	Tue Apr 22 19:26:07 2008 +0000
+++ b/src/bar_exif.c	Tue Apr 22 22:44:10 2008 +0000
@@ -509,7 +509,7 @@
 	gtk_widget_destroy(eb->vbox);
 }
 
-static void bar_exif_size(ExifBar *eb, gint val)
+static void bar_exif_width(ExifBar *eb, gint val)
 {
 	gint size;
 
@@ -517,20 +517,21 @@
 	size = CLAMP(size + val, EXIF_BAR_SIZE_INCREMENT * 2, EXIF_BAR_SIZE_INCREMENT * 16);
 
 	gtk_widget_set_size_request(eb->vbox, size, -1);
+	options->panels.exif.width = eb->vbox->allocation.width;
 }
 
 static void bar_exif_larger(GtkWidget *widget, gpointer data)
 {
 	ExifBar *eb = data;
 
-	bar_exif_size(eb, EXIF_BAR_SIZE_INCREMENT);
+	bar_exif_width(eb, EXIF_BAR_SIZE_INCREMENT);
 }
 
 static void bar_exif_smaller(GtkWidget *widget, gpointer data)
 {
 	ExifBar *eb = data;
 
-	bar_exif_size(eb, -EXIF_BAR_SIZE_INCREMENT);
+	bar_exif_width(eb, -EXIF_BAR_SIZE_INCREMENT);
 }
 
 static void bar_exif_destroy(GtkWidget *widget, gpointer data)