diff options
author | raveit65 <[email protected]> | 2017-05-03 20:05:54 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2017-05-11 12:49:29 +0200 |
commit | 522885a3f6648c40eb30e003a994248328859a77 (patch) | |
tree | 1673f0a4382f798f2519fa4b4ca609a76c187f51 /gsearchtool/src | |
parent | f9f4cd36f963c1c10137afa4e0c62dbee2470156 (diff) | |
download | mate-utils-522885a3f6648c40eb30e003a994248328859a77.tar.bz2 mate-utils-522885a3f6648c40eb30e003a994248328859a77.tar.xz |
searchtool & logview: avoid deprecated GtkAlignment
Diffstat (limited to 'gsearchtool/src')
-rw-r--r-- | gsearchtool/src/gsearchtool-support.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/gsearchtool/src/gsearchtool-support.c b/gsearchtool/src/gsearchtool-support.c index b4bdc0b1..5804e378 100644 --- a/gsearchtool/src/gsearchtool-support.c +++ b/gsearchtool/src/gsearchtool-support.c @@ -1120,7 +1120,6 @@ GtkWidget * gsearchtool_button_new_with_stock_icon (const gchar * string, const gchar * stock_id) { - GtkWidget * align; GtkWidget * button; GtkWidget * hbox; GtkWidget * image; @@ -1131,12 +1130,10 @@ gsearchtool_button_new_with_stock_icon (const gchar * string, gtk_label_set_mnemonic_widget (GTK_LABEL (label), GTK_WIDGET (button)); image = gtk_image_new_from_stock (stock_id, GTK_ICON_SIZE_BUTTON); hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 2); - align = gtk_alignment_new (0.5, 0.5, 0.0, 0.0); gtk_box_pack_start (GTK_BOX (hbox), image, FALSE, FALSE, 0); gtk_box_pack_end (GTK_BOX (hbox), label, FALSE, FALSE, 0); - gtk_container_add (GTK_CONTAINER (button), align); - gtk_container_add (GTK_CONTAINER (align), hbox); - gtk_widget_show_all (align); + gtk_container_add (GTK_CONTAINER (button), hbox); + gtk_widget_show_all (hbox); return button; } |