summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrbuj <[email protected]>2020-05-11 13:11:47 +0200
committerraveit65 <[email protected]>2020-06-07 16:03:52 +0200
commit74da30255b5b2af93deaf079e6fe23238f893c57 (patch)
tree4b95f8b4ceb7f495701bf1d22a97b510bb2fbf02
parenta50040156b308e4a4836b9bb13fb7cff4cf6f873 (diff)
downloadmate-control-center-74da30255b5b2af93deaf079e6fe23238f893c57.tar.bz2
mate-control-center-74da30255b5b2af93deaf079e6fe23238f893c57.tar.xz
shell-window: Remove unused function shell_window_handle_size_request
-rw-r--r--libslab/shell-window.c37
1 files changed, 0 insertions, 37 deletions
diff --git a/libslab/shell-window.c b/libslab/shell-window.c
index 2b578391..a42da069 100644
--- a/libslab/shell-window.c
+++ b/libslab/shell-window.c
@@ -25,9 +25,6 @@
#include "app-resizer.h"
-static void shell_window_handle_size_request (GtkWidget * widget, GtkRequisition * requisition,
- AppShellData * data);
-
#define SHELL_WINDOW_BORDER_WIDTH 6
G_DEFINE_TYPE (ShellWindow, shell_window, GTK_TYPE_FRAME);
@@ -56,13 +53,6 @@ shell_window_new (AppShellData * app_data)
window->_hbox = GTK_BOX (gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0));
gtk_container_add (GTK_CONTAINER (window), GTK_WIDGET (window->_hbox));
-/* FIXME add some replacement for GTK+3, or just remove this code? */
-#if 0
- window->resize_handler_id =
- g_signal_connect (G_OBJECT (window), "size-request",
- G_CALLBACK (shell_window_handle_size_request), app_data);
-#endif
-
return GTK_WIDGET (window);
}
@@ -76,33 +66,6 @@ shell_window_clear_resize_handler (ShellWindow * win)
}
}
-/* We want the window to come up with proper runtime calculated width ( ie taking into account font size, locale, ...) so
- we can't hard code a size. But since ScrolledWindow returns basically zero for it's size request we need to
- grab the "real" desired width. Once it's shown though we want to allow the user to size down if they want too, so
- we unhook this function
-*/
-static void
-shell_window_handle_size_request (GtkWidget * widget, GtkRequisition * requisition,
- AppShellData * app_data)
-{
- gint height;
- GtkRequisition child_requisiton;
-
- gtk_widget_get_preferred_size (GTK_WIDGET (APP_RESIZER (app_data->category_layout)->child), &child_requisiton, NULL);
-
- requisition->width += child_requisiton.width;
-
- /* use the left side as a minimum height, if the right side is taller,
- use it up to SIZING_HEIGHT_PERCENT of the screen height
- */
- height = child_requisiton.height + 10;
- if (height > requisition->height)
- {
- requisition->height =
- MIN (((gfloat) HeightOfScreen (gdk_x11_screen_get_xscreen (gdk_screen_get_default ())) * SIZING_HEIGHT_PERCENT), height);
- }
-}
-
void
shell_window_set_contents (ShellWindow * shell, GtkWidget * left_pane, GtkWidget * right_pane)
{