~ubuntu-dev/ubuntu/lucid/mutter/lucid-201002110959

« back to all changes in this revision

Viewing changes to src/ui/theme-viewer.c

  • Committer: Bazaar Package Importer
  • Author(s): Didier Roche
  • Date: 2009-09-05 16:23:00 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20090905162300-uh014j826cs7xe76
Tags: 2.27.4-0ubuntu1
* New upstream release
* add debian/watch

Show diffs side-by-side

added added

removed removed

Lines of Context:
86
86
  { N_("/Windows/Des_ktop"),      NULL,          NULL,              0, NULL }
87
87
};
88
88
 
 
89
static void
 
90
insert_stock_button (GtkWidget          *toolbar,
 
91
                     const gchar        *stock_id,
 
92
                     const gchar        *text)
 
93
{
 
94
  GtkToolItem *button;
 
95
 
 
96
  button = gtk_tool_button_new_from_stock (stock_id);
 
97
  gtk_tool_item_set_tooltip_text (button, text);
 
98
  gtk_toolbar_insert (GTK_TOOLBAR (toolbar),
 
99
                      button,
 
100
                      -1); /*-1 means append to end of toolbar*/
 
101
 
 
102
  return;
 
103
}
 
104
 
89
105
static GtkWidget *
90
106
normal_contents (void)
91
107
{
131
147
   */
132
148
  toolbar = gtk_toolbar_new ();
133
149
 
134
 
  gtk_toolbar_insert_stock (GTK_TOOLBAR (toolbar),
135
 
                            GTK_STOCK_NEW,
136
 
                            _("Open another one of these windows"),
137
 
                            NULL,
138
 
                            NULL, NULL,
139
 
                            -1);  /* -1 means "append" */
140
 
  
141
 
  gtk_toolbar_insert_stock (GTK_TOOLBAR (toolbar),
142
 
                            GTK_STOCK_OPEN,
143
 
                            _("This is a demo button with an 'open' icon"),
144
 
                            NULL,
145
 
                            NULL, NULL,
146
 
                            -1);  /* -1 means "append" */
147
 
 
148
 
  gtk_toolbar_insert_stock (GTK_TOOLBAR (toolbar),
149
 
                            GTK_STOCK_QUIT,
150
 
                            _("This is a demo button with a 'quit' icon"),
151
 
                            NULL,
152
 
                            NULL, NULL,
153
 
                            -1);  /* -1 means "append" */
 
150
  insert_stock_button (toolbar, GTK_STOCK_NEW,
 
151
                       _("Open another one of these windows"));
 
152
  insert_stock_button (toolbar, GTK_STOCK_OPEN,
 
153
                       _("This is a demo button with an 'open' icon"));
 
154
  insert_stock_button (toolbar, GTK_STOCK_QUIT,
 
155
                       _("This is a demo button with a 'quit' icon"));
154
156
 
155
157
  handlebox = gtk_handle_box_new ();
156
158