[cheese] Set a nice default size on CheeseWidget
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cheese] Set a nice default size on CheeseWidget
- Date: Mon, 28 Oct 2013 21:32:53 +0000 (UTC)
commit 263effb65a6551cf97df94f0ec777432ed6aeb7d
Author: Bastien Nocera <hadess hadess net>
Date: Thu Oct 24 17:12:57 2013 +0200
Set a nice default size on CheeseWidget
As per mockups:
https://raw.github.com/gnome-design-team/gnome-mockups/master/avatar-chooser/avatar-chooser.png
https://bugzilla.gnome.org/show_bug.cgi?id=710874
libcheese/cheese-avatar-chooser.c | 2 --
libcheese/cheese-widget.c | 2 +-
2 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/libcheese/cheese-avatar-chooser.c b/libcheese/cheese-avatar-chooser.c
index d223c52..2a7d1a7 100644
--- a/libcheese/cheese-avatar-chooser.c
+++ b/libcheese/cheese-avatar-chooser.c
@@ -297,8 +297,6 @@ cheese_avatar_chooser_init (CheeseAvatarChooser *chooser)
create_page (frame, priv->take_again_button, NULL),
gtk_label_new ("image"));
- gtk_window_set_default_size (GTK_WINDOW (chooser), 400, 300);
-
gtk_widget_show_all (gtk_dialog_get_content_area (GTK_DIALOG (chooser)));
}
diff --git a/libcheese/cheese-widget.c b/libcheese/cheese-widget.c
index ba35e27..5c51640 100644
--- a/libcheese/cheese-widget.c
+++ b/libcheese/cheese-widget.c
@@ -218,12 +218,12 @@ cheese_widget_init (CheeseWidget *widget)
/* Webcam page */
priv->screen = gtk_clutter_embed_new ();
+ gtk_widget_set_size_request (priv->screen, 460, 345);
stage = gtk_clutter_embed_get_stage (GTK_CLUTTER_EMBED (priv->screen));
clutter_actor_set_background_color (stage, &black);
frame = totem_aspect_frame_new ();
priv->texture = clutter_texture_new ();
- clutter_actor_set_size (priv->texture, 400, 300);
totem_aspect_frame_set_child (TOTEM_ASPECT_FRAME (frame), priv->texture);
clutter_actor_set_layout_manager (stage, clutter_bin_layout_new (CLUTTER_BIN_ALIGNMENT_FILL,
CLUTTER_BIN_ALIGNMENT_FILL));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]