summaryrefslogtreecommitdiff
path: root/libslab
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2017-04-24 21:53:51 +0200
committerraveit65 <[email protected]>2017-05-16 17:51:14 +0200
commit7ec248a7a5aebcbd545fc8dd6a8d9e6d218f7314 (patch)
tree59ec3c861f1519ffba2551a51306fbb34b8a7766 /libslab
parent4ac77b3b2ffd95ae6ec74d0754f5e0740b6d5110 (diff)
downloadmate-control-center-7ec248a7a5aebcbd545fc8dd6a8d9e6d218f7314.tar.bz2
mate-control-center-7ec248a7a5aebcbd545fc8dd6a8d9e6d218f7314.tar.xz
libslab searchbar: remove deprecated ussage of GtkAlignment
Diffstat (limited to 'libslab')
-rw-r--r--libslab/search-bar.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/libslab/search-bar.c b/libslab/search-bar.c
index f355fb01..fd480f34 100644
--- a/libslab/search-bar.c
+++ b/libslab/search-bar.c
@@ -84,7 +84,6 @@ static void
nld_search_bar_init (NldSearchBar * search_bar)
{
NldSearchBarPrivate *priv = NLD_SEARCH_BAR_GET_PRIVATE (search_bar);
- GtkWidget *alignment;
GtkWidget *entry;
gtk_widget_set_can_focus (GTK_WIDGET (search_bar), TRUE);
@@ -93,13 +92,12 @@ nld_search_bar_init (NldSearchBar * search_bar)
priv->hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 3);
gtk_box_pack_start (GTK_BOX (search_bar), priv->hbox, TRUE, FALSE, 0);
- alignment = gtk_alignment_new (0.0, 0.5, 1.0, 0.0);
- gtk_box_pack_start (GTK_BOX (priv->hbox), alignment, TRUE, TRUE, 0);
-
entry = nld_search_entry_new ();
+ gtk_widget_set_halign (entry, GTK_ALIGN_START);
+ gtk_widget_set_valign (entry, GTK_ALIGN_CENTER);
priv->entry = GTK_ENTRY (entry);
gtk_widget_show (entry);
- gtk_container_add (GTK_CONTAINER (alignment), entry);
+ gtk_box_pack_start (GTK_BOX (priv->hbox), entry, TRUE, TRUE, 0);
g_signal_connect (entry, "activate", G_CALLBACK (emit_search_callback), search_bar);