gtk+ r21168 - trunk/gtk



Author: federico
Date: Wed Aug 20 01:13:17 2008
New Revision: 21168
URL: http://svn.gnome.org/viewvc/gtk+?rev=21168&view=rev

Log:
[PATCH 7/7] bgo543308 - Remove the default_width/height stuff, since we are not using it anymore

Signed-off-by: Federico Mena Quintero <federico novell com>

Modified:
   trunk/gtk/gtkfilechooserdefault.c
   trunk/gtk/gtkfilechooserprivate.h

Modified: trunk/gtk/gtkfilechooserdefault.c
==============================================================================
--- trunk/gtk/gtkfilechooserdefault.c	(original)
+++ trunk/gtk/gtkfilechooserdefault.c	Wed Aug 20 01:13:17 2008
@@ -5887,18 +5887,6 @@
   impl = GTK_FILE_CHOOSER_DEFAULT (widget);
 
   GTK_WIDGET_CLASS (_gtk_file_chooser_default_parent_class)->size_allocate (widget, allocation);
-
-  impl->default_width = allocation->width;
-  impl->default_height = allocation->height;
-
-  if (impl->preview_widget_active &&
-      impl->preview_widget &&
-      GTK_WIDGET_DRAWABLE (impl->preview_widget))
-    impl->default_width -= impl->preview_widget->allocation.width + PREVIEW_HBOX_SPACING;
-
-  if (impl->extra_widget &&
-      GTK_WIDGET_DRAWABLE (impl->extra_widget))
-    impl->default_height -= GTK_BOX (widget)->spacing + impl->extra_widget->allocation.height;
 }
 
 static gboolean

Modified: trunk/gtk/gtkfilechooserprivate.h
==============================================================================
--- trunk/gtk/gtkfilechooserprivate.h	(original)
+++ trunk/gtk/gtkfilechooserprivate.h	Wed Aug 20 01:13:17 2008
@@ -282,9 +282,6 @@
   GSource *shortcuts_drag_outside_idle;
 #endif
 
-  gint default_width;
-  gint default_height;
-
   /* Flags */
 
   guint local_only : 1;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]