diff options
author | Přemysl Janouch <p.janouch@gmail.com> | 2015-01-20 07:41:54 +0100 |
---|---|---|
committer | Přemysl Janouch <p.janouch@gmail.com> | 2015-01-20 07:41:54 +0100 |
commit | e1225accf47ce3dcff0b811b8793d8898e78f9e9 (patch) | |
tree | 648be4f537684d1529c36105d90ae9eb362e7e76 /liblogdiag | |
parent | 5b16953a2f6d7fbd6e0c62b8bb793afae0f59de2 (diff) | |
download | logdiag-e1225accf47ce3dcff0b811b8793d8898e78f9e9.tar.gz logdiag-e1225accf47ce3dcff0b811b8793d8898e78f9e9.tar.xz logdiag-e1225accf47ce3dcff0b811b8793d8898e78f9e9.zip |
Fix a few deprecation warnings
Diffstat (limited to 'liblogdiag')
-rw-r--r-- | liblogdiag/ld-category-tree-view.c | 12 | ||||
-rw-r--r-- | liblogdiag/ld-category-tree-view.h | 4 |
2 files changed, 11 insertions, 5 deletions
diff --git a/liblogdiag/ld-category-tree-view.c b/liblogdiag/ld-category-tree-view.c index 18112c2..4fc0d6c 100644 --- a/liblogdiag/ld-category-tree-view.c +++ b/liblogdiag/ld-category-tree-view.c @@ -57,7 +57,7 @@ ld_category_view_init (LdCategoryViewInterface *iface) } G_DEFINE_TYPE_WITH_CODE (LdCategoryTreeView, - ld_category_tree_view, GTK_TYPE_VBOX, + ld_category_tree_view, GTK_TYPE_BOX, G_IMPLEMENT_INTERFACE (LD_TYPE_CATEGORY_VIEW, ld_category_view_init)); static void @@ -80,6 +80,7 @@ ld_category_tree_view_init (LdCategoryTreeView *self) { self->priv = G_TYPE_INSTANCE_GET_PRIVATE (self, LD_TYPE_CATEGORY_TREE_VIEW, LdCategoryTreeViewPrivate); + gtk_orientable_set_orientation (GTK_ORIENTABLE (self), GTK_ORIENTATION_VERTICAL); } static void @@ -136,8 +137,13 @@ create_empty_label (void) label = gtk_label_new (_("Empty")); gtk_widget_set_sensitive (label, FALSE); - gtk_misc_set_alignment (GTK_MISC (label), 0, 0.5); - gtk_misc_set_padding (GTK_MISC (label), 5, 0); + + gtk_widget_set_halign (label, GTK_ALIGN_CENTER); + gtk_widget_set_valign (label, GTK_ALIGN_CENTER); + gtk_widget_set_margin_left (label, 5); + gtk_widget_set_margin_right (label, 5); + gtk_widget_set_margin_top (label, 5); + gtk_widget_set_margin_bottom (label, 5); attr = pango_attr_list_new (); pango_attr_list_change (attr, pango_attr_style_new (PANGO_STYLE_ITALIC)); diff --git a/liblogdiag/ld-category-tree-view.h b/liblogdiag/ld-category-tree-view.h index b222a0a..f99314d 100644 --- a/liblogdiag/ld-category-tree-view.h +++ b/liblogdiag/ld-category-tree-view.h @@ -37,14 +37,14 @@ typedef struct _LdCategoryTreeViewClass LdCategoryTreeViewClass; struct _LdCategoryTreeView { /*< private >*/ - GtkVBox parent_instance; + GtkBox parent_instance; LdCategoryTreeViewPrivate *priv; }; struct _LdCategoryTreeViewClass { /*< private >*/ - GtkVBoxClass parent_class; + GtkBoxClass parent_class; }; |