@@ -172,7 +172,7 @@ create_meta_theme_pixbuf (ThemeThumbnailData *theme_thumbnail_data)
172172 GtkWidget * preview ;
173173 GtkWidget * vbox ;
174174 GtkWidget * box ;
175- GtkWidget * stock_button ;
175+ GtkWidget * image_button ;
176176 GtkWidget * checkbox ;
177177 GtkWidget * radio ;
178178
@@ -220,11 +220,17 @@ create_meta_theme_pixbuf (ThemeThumbnailData *theme_thumbnail_data)
220220 vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL , 6 );
221221 gtk_container_set_border_width (GTK_CONTAINER (vbox ), 6 );
222222 gtk_container_add (GTK_CONTAINER (preview ), vbox );
223- stock_button = gtk_button_new_from_stock (GTK_STOCK_OPEN );
224- gtk_widget_set_halign (stock_button , GTK_ALIGN_START );
225- gtk_widget_set_valign (stock_button , GTK_ALIGN_START );
226- gtk_widget_show (stock_button );
227- gtk_box_pack_start (GTK_BOX (vbox ), stock_button , FALSE, FALSE, 0 );
223+
224+ image_button = GTK_WIDGET (g_object_new (GTK_TYPE_BUTTON ,
225+ "label" , "gtk-open" ,
226+ "use-stock" , TRUE,
227+ "use-underline" , TRUE,
228+ NULL ));
229+
230+ gtk_widget_set_halign (image_button , GTK_ALIGN_START );
231+ gtk_widget_set_valign (image_button , GTK_ALIGN_START );
232+ gtk_widget_show (image_button );
233+ gtk_box_pack_start (GTK_BOX (vbox ), image_button , FALSE, FALSE, 0 );
228234 box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL , 0 );
229235 gtk_box_pack_start (GTK_BOX (vbox ), box , FALSE, FALSE, 0 );
230236 checkbox = gtk_check_button_new ();
@@ -281,7 +287,7 @@ static GdkPixbuf *
281287create_gtk_theme_pixbuf (ThemeThumbnailData * theme_thumbnail_data )
282288{
283289 GtkSettings * settings ;
284- GtkWidget * window , * vbox , * box , * stock_button , * checkbox , * radio ;
290+ GtkWidget * window , * vbox , * box , * image_button , * checkbox , * radio ;
285291 GtkRequisition requisition ;
286292 GtkAllocation allocation ;
287293 GdkPixbuf * pixbuf , * retval ;
@@ -299,8 +305,14 @@ create_gtk_theme_pixbuf (ThemeThumbnailData *theme_thumbnail_data)
299305 box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL , 6 );
300306 gtk_container_set_border_width (GTK_CONTAINER (box ), 6 );
301307 gtk_box_pack_start (GTK_BOX (vbox ), box , FALSE, FALSE, 0 );
302- stock_button = gtk_button_new_from_stock (GTK_STOCK_OPEN );
303- gtk_box_pack_start (GTK_BOX (box ), stock_button , FALSE, FALSE, 0 );
308+
309+ image_button = GTK_WIDGET (g_object_new (GTK_TYPE_BUTTON ,
310+ "label" , "gtk-open" ,
311+ "use-stock" , TRUE,
312+ "use-underline" , TRUE,
313+ NULL ));
314+
315+ gtk_box_pack_start (GTK_BOX (box ), image_button , FALSE, FALSE, 0 );
304316 checkbox = gtk_check_button_new ();
305317 gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (checkbox ), TRUE);
306318 gtk_box_pack_start (GTK_BOX (box ), checkbox , FALSE, FALSE, 0 );
@@ -309,12 +321,12 @@ create_gtk_theme_pixbuf (ThemeThumbnailData *theme_thumbnail_data)
309321
310322 gtk_widget_show_all (window );
311323 gtk_widget_show_all (vbox );
312- gtk_widget_realize (stock_button );
313- gtk_widget_realize (gtk_bin_get_child (GTK_BIN (stock_button )));
324+ gtk_widget_realize (image_button );
325+ gtk_widget_realize (gtk_bin_get_child (GTK_BIN (image_button )));
314326 gtk_widget_realize (checkbox );
315327 gtk_widget_realize (radio );
316- gtk_widget_map (stock_button );
317- gtk_widget_map (gtk_bin_get_child (GTK_BIN (stock_button )));
328+ gtk_widget_map (image_button );
329+ gtk_widget_map (gtk_bin_get_child (GTK_BIN (image_button )));
318330 gtk_widget_map (checkbox );
319331 gtk_widget_map (radio );
320332
0 commit comments