summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElias Aebi <[email protected]>2013-11-03 21:24:31 +0100
committerElias Aebi <[email protected]>2013-11-03 21:24:31 +0100
commitdcb2d1918aa26db64727d14414983b6270b34cab (patch)
tree47ec9a93c2bcd7f9547d459966bf45cab6a3bcca
parent293be904e1852d0da0372c5fa71d7eaf491d5356 (diff)
downloadcaja-dcb2d1918aa26db64727d14414983b6270b34cab.tar.bz2
caja-dcb2d1918aa26db64727d14414983b6270b34cab.tar.xz
remove a custom size allocation that broke stuff on GTK3
-rw-r--r--src/caja-side-pane.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/src/caja-side-pane.c b/src/caja-side-pane.c
index d3922b9f..a10fa2b7 100644
--- a/src/caja-side-pane.c
+++ b/src/caja-side-pane.c
@@ -133,33 +133,6 @@ select_panel (CajaSidePane *side_pane, SidePanel *panel)
(GTK_NOTEBOOK (side_pane->details->notebook), page_num);
}
-static void
-caja_side_pane_size_allocate (GtkWidget *widget,
- GtkAllocation *allocation)
-{
- int width;
- GtkAllocation child_allocation, frame_allocation;
- CajaSidePane *pane;
- GtkWidget *frame;
- GtkWidget *hbox;
- GtkRequisition child_requisition;
-
- GTK_WIDGET_CLASS (parent_class)->size_allocate (widget, allocation);
-
- pane = CAJA_SIDE_PANE(widget);
- frame = pane->details->title_frame;
- hbox = pane->details->title_hbox;
-
- gtk_widget_get_preferred_size (hbox, &child_requisition, NULL);
- width = child_requisition.width;
-
- gtk_widget_get_allocation (frame, &frame_allocation);
- child_allocation = frame_allocation;
- child_allocation.width = MAX (width, frame_allocation.width);
-
- gtk_widget_size_allocate (frame, &child_allocation);
-}
-
/* initializing the class object by installing the operations we override */
static void
caja_side_pane_class_init (CajaSidePaneClass *klass)
@@ -172,7 +145,6 @@ caja_side_pane_class_init (CajaSidePaneClass *klass)
gobject_class->finalize = caja_side_pane_finalize;
gobject_class->dispose = caja_side_pane_dispose;
- widget_class->size_allocate = caja_side_pane_size_allocate;
signals[CLOSE_REQUESTED] = g_signal_new
("close_requested",