]> git.0d.be Git - empathy.git/commitdiff
CallWindow: make the info buttons rounded
authorEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>
Wed, 17 Aug 2011 11:36:13 +0000 (12:36 +0100)
committerEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>
Fri, 19 Aug 2011 09:27:26 +0000 (10:27 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=656576

src/empathy-call-window.c

index 3e1037d06eb8af25815f4ba207bfef78cec9d6a8..ffc94225b0785e639febe76300495d3b298045d7 100644 (file)
@@ -1040,8 +1040,11 @@ create_video_preview (EmpathyCallWindow *self)
   /* Translators: this is an "Info" label. It should be as short
    * as possible. */
   button = gtk_button_new_with_label (_("i"));
-  priv->preview_shown_button = b =
-      gtk_clutter_actor_new_with_contents (button);
+  priv->preview_shown_button = b = empathy_rounded_actor_new ();
+  gtk_container_add (
+      GTK_CONTAINER (gtk_clutter_actor_get_widget (GTK_CLUTTER_ACTOR (b))),
+      button);
+  clutter_actor_set_size (b, 24, 24);
 
   layout_end = clutter_bin_layout_new (CLUTTER_BIN_ALIGNMENT_END,
       CLUTTER_BIN_ALIGNMENT_END);
@@ -1060,8 +1063,12 @@ create_video_preview (EmpathyCallWindow *self)
   /* Translators: this is an "Info" label. It should be as short
    * as possible. */
   button = gtk_button_new_with_label (_("i"));
-  priv->preview_hidden_button =
-      gtk_clutter_actor_new_with_contents (button);
+  b = empathy_rounded_actor_new ();
+  gtk_container_add (
+      GTK_CONTAINER (gtk_clutter_actor_get_widget (GTK_CLUTTER_ACTOR (b))),
+      button);
+  clutter_actor_set_size (b, 24, 24);
+  priv->preview_hidden_button = b;
 
   clutter_bin_layout_add (CLUTTER_BIN_LAYOUT (priv->video_layout),
       priv->preview_hidden_button,