From dcb2d1918aa26db64727d14414983b6270b34cab Mon Sep 17 00:00:00 2001 From: Elias Aebi Date: Sun, 3 Nov 2013 21:24:31 +0100 Subject: remove a custom size allocation that broke stuff on GTK3 --- src/caja-side-pane.c | 28 ---------------------------- 1 file changed, 28 deletions(-) (limited to 'src') 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", -- cgit v1.2.1