summaryrefslogtreecommitdiff
path: root/logview/src
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2017-05-03 20:05:54 +0200
committerraveit65 <[email protected]>2017-05-11 12:49:29 +0200
commit522885a3f6648c40eb30e003a994248328859a77 (patch)
tree1673f0a4382f798f2519fa4b4ca609a76c187f51 /logview/src
parentf9f4cd36f963c1c10137afa4e0c62dbee2470156 (diff)
downloadmate-utils-522885a3f6648c40eb30e003a994248328859a77.tar.bz2
mate-utils-522885a3f6648c40eb30e003a994248328859a77.tar.xz
searchtool & logview: avoid deprecated GtkAlignment
Diffstat (limited to 'logview/src')
-rw-r--r--logview/src/logview-findbar.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/logview/src/logview-findbar.c b/logview/src/logview-findbar.c
index bf71a260..58cb9909 100644
--- a/logview/src/logview-findbar.c
+++ b/logview/src/logview-findbar.c
@@ -164,11 +164,10 @@ logview_findbar_init (LogviewFindbar *findbar)
priv->status_bold_id = 0;
/* Find: |_______| */
- w = gtk_alignment_new (0.0, 0.5, 1.0, 1.0);
- gtk_alignment_set_padding (GTK_ALIGNMENT (w), 0, 0, 2, 2);
-
box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 12);
- gtk_container_add (GTK_CONTAINER (w), box);
+ gtk_widget_set_halign (box, GTK_ALIGN_START);
+ gtk_widget_set_margin_start (box, 2);
+ gtk_widget_set_margin_end (box, 2);
label = gtk_label_new_with_mnemonic (_("_Find:"));
gtk_box_pack_start (GTK_BOX (box), label, FALSE, FALSE, 0);
@@ -179,7 +178,7 @@ logview_findbar_init (LogviewFindbar *findbar)
gtk_box_pack_start (GTK_BOX (box), priv->entry, TRUE, TRUE, 0);
item = gtk_tool_item_new ();
- gtk_container_add (GTK_CONTAINER (item), w);
+ gtk_container_add (GTK_CONTAINER (item), box);
gtk_toolbar_insert (gtoolbar, item, -1);
gtk_widget_show_all (GTK_WIDGET (item));