~bilalakhtar/ubuntu/maverick/rhythmbox/fix-615248

« back to all changes in this revision

Viewing changes to debian/patches/08_playbutton_set_width.patch

  • Committer: Bilal Akhtar
  • Date: 2010-08-10 04:19:19 UTC
  • Revision ID: bilalakhtar96@yahoo.com-20100810041919-3tpn39n970p2nqed
* debian/patches/08_playbutton_set_width.patch:
  - Set width of Play button a bit higher than normal so that the
    button size does not change when its label is changed to Pause.
    (LP: #615248)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Description: Patch to set minimum width of Play button
 
2
 This patch sets the minimum width of the Play button a bit higher
 
3
 than its normal width so that when the label of the button changes to
 
4
 Pause, the button size remains constant.
 
5
 
 
6
Author: Bilal Akhtar <bilalakhtar@ubuntu.com>
 
7
Bug-Ubuntu: https://edge.launchpad.net/bugs/615248
 
8
Forwarded: not-needed
 
9
--- a/shell/rb-shell.c
 
10
+++ b/shell/rb-shell.c
 
11
@@ -1478,6 +1478,9 @@
 
12
        toolbar = gtk_ui_manager_get_widget (shell->priv->ui_manager, "/ToolBar");
 
13
        gtk_box_pack_start (GTK_BOX (hbox), toolbar, TRUE, TRUE, 0);
 
14
 
 
15
+       GtkWidget* playbutton = gtk_ui_manager_get_widget (shell->priv->ui_manager, "/ToolBar/Play");
 
16
+       gtk_widget_set_size_request(GTK_WIDGET(playbutton), 80, -1);
 
17
+
 
18
        shell->priv->volume_button = gtk_volume_button_new ();
 
19
        g_signal_connect (shell->priv->volume_button, "value-changed",
 
20
                          G_CALLBACK (rb_shell_volume_widget_changed_cb),