diff options
author | Pablo Barciela <[email protected]> | 2019-03-09 15:26:57 +0100 |
---|---|---|
committer | lukefromdc <[email protected]> | 2019-04-10 21:53:31 +0000 |
commit | 203399fc4969ea512c96592ec6a22218015f4fbd (patch) | |
tree | 8917d69c9c64996daef288a47214d9d6f5e5d511 /src/caja-window.c | |
parent | e50549cf502f988ff214a2714a8cdd6fb6892244 (diff) | |
download | caja-203399fc4969ea512c96592ec6a22218015f4fbd.tar.bz2 caja-203399fc4969ea512c96592ec6a22218015f4fbd.tar.xz |
drop functions defined but not used
Diffstat (limited to 'src/caja-window.c')
-rw-r--r-- | src/caja-window.c | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/src/caja-window.c b/src/caja-window.c index 5f29cbbe..c95870f9 100644 --- a/src/caja-window.c +++ b/src/caja-window.c @@ -984,46 +984,6 @@ caja_window_slot_close (CajaWindowSlot *slot) } static void -caja_window_size_request (GtkWidget *widget, - GtkRequisition *requisition) -{ - GdkScreen *screen; - guint max_width; - guint max_height; - - g_assert (CAJA_IS_WINDOW (widget)); - g_assert (requisition != NULL); - - screen = gtk_window_get_screen (GTK_WINDOW (widget)); - - /* Limit the requisition to be within 90% of the available screen - * real state. - * - * This way the user will have a fighting chance of getting - * control of their window back if for whatever reason one of the - * window's descendants decide they want to be 4000 pixels wide. - * - * Note that the user can still make the window really huge by hand. - * - * Bugs in components or other widgets that cause such huge geometries - * to be requested, should still be fixed. This code is here only to - * prevent the extremely frustrating consequence of such bugs. - */ - max_width = get_max_forced_width (screen); - max_height = get_max_forced_height (screen); - - if (requisition->width > (int) max_width) - { - requisition->width = max_width; - } - - if (requisition->height > (int) max_height) - { - requisition->height = max_height; - } -} - -static void caja_window_realize (GtkWidget *widget) { GTK_WIDGET_CLASS (caja_window_parent_class)->realize (widget); |