[cheese] window: keep size of the notebook while switching mode
- From: Filippo Argiolas <fargiolas src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [cheese] window: keep size of the notebook while switching mode
- Date: Mon, 10 Aug 2009 18:51:35 +0000 (UTC)
commit d13315eb8322969f8ee31a1e102afdfc827ac7e0
Author: Filippo Argiolas <filippo argiolas gmail com>
Date: Sat Aug 8 14:24:01 2009 +0200
window: keep size of the notebook while switching mode
Better to set size request on the notebook so that the trick works with
the effect selector and while the throbber is shown too.
src/cheese-window.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/cheese-window.c b/src/cheese-window.c
index 5c50ae9..54fbdda 100644
--- a/src/cheese-window.c
+++ b/src/cheese-window.c
@@ -369,13 +369,13 @@ cheese_window_toggle_wide_mode (GtkWidget *widget, CheeseWindow *cheese_window)
GtkRequisition req;
gint w, h;
- gtk_widget_set_size_request (cheese_window->screen,
- GTK_WIDGET (cheese_window->screen)->allocation.width,
- GTK_WIDGET (cheese_window->screen)->allocation.height);
+ gtk_widget_set_size_request (cheese_window->notebook,
+ GTK_WIDGET (cheese_window->notebook)->allocation.width,
+ GTK_WIDGET (cheese_window->notebook)->allocation.height);
gtk_window_resize (cheese_window->window, 1, 1);
gtk_widget_size_request (cheese_window->window, &req);
gtk_window_resize (GTK_WINDOW (cheese_window->window), req.width, req.height);
- gtk_widget_set_size_request (cheese_window->screen, -1, -1);
+ gtk_widget_set_size_request (cheese_window->notebook, -1, -1);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]