aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2013-03-31 21:16:10 +0800
committerMatthew Barnes <mbarnes@redhat.com>2013-04-01 00:10:54 +0800
commitf8f89b0bfd8ef857dceed2a96df16a008290d53b (patch)
tree02f0b13683bf8e39df7ab12aa84cc9fe324e7a0d /shell/e-shell.c
parent50b164637fb0cca89a20793341102b0ddbfc5b50 (diff)
downloadgsoc2013-evolution-f8f89b0bfd8ef857dceed2a96df16a008290d53b.tar.gz
gsoc2013-evolution-f8f89b0bfd8ef857dceed2a96df16a008290d53b.tar.zst
gsoc2013-evolution-f8f89b0bfd8ef857dceed2a96df16a008290d53b.zip
Remove e_shell_adapt_window_size().
Its preconditions are never TRUE, and is therefore a no-op function.
Diffstat (limited to 'shell/e-shell.c')
-rw-r--r--shell/e-shell.c34
1 files changed, 0 insertions, 34 deletions
diff --git a/shell/e-shell.c b/shell/e-shell.c
index 2e32929dcd..922fb4f213 100644
--- a/shell/e-shell.c
+++ b/shell/e-shell.c
@@ -1836,40 +1836,6 @@ e_shell_cancel_quit (EShell *shell)
g_signal_stop_emission (shell, signals[QUIT_REQUESTED], 0);
}
-/**
- * e_shell_adapt_window_size:
- * @shell: an #EShell
- * @window: a #GtkWindow to adapt to full-screen
- *
- * This is used to adapt to window's size to be optimal for
- * the platform. The shell settings are used to determine if
- * a window should be set to full screen etc.
- *
- * This method is best called when the widget is realized on
- * a given screen.
- **/
-void
-e_shell_adapt_window_size (EShell *shell,
- GtkWindow *window)
-{
- GdkScreen *screen;
- GdkRectangle rect;
- GdkWindow *gdk_window;
- gint monitor;
-
- if (!e_shell_get_meego_mode (shell) || TRUE)
- return;
-
- screen = gdk_screen_get_default ();
- gdk_window = gtk_widget_get_window (GTK_WIDGET (window));
- monitor = gdk_screen_get_monitor_at_window (screen, gdk_window);
- gdk_screen_get_monitor_geometry (screen, monitor, &rect);
-
- gtk_window_set_default_size (window, rect.width, rect.height);
- gtk_window_set_decorated (window, FALSE);
- gtk_window_maximize (window);
-}
-
void
e_shell_set_startup_view (EShell *shell,
const gchar *view)