diff options
author | raveit65 <[email protected]> | 2017-03-04 12:12:48 +0100 |
---|---|---|
committer | raveit65 <[email protected]> | 2017-03-06 16:10:06 +0100 |
commit | 32ae49f81c05e676a86544e66b09f65f83b9db37 (patch) | |
tree | e7276b2611c75b1e8363d43894749f4b1ed9bd49 /shell/ev-annotation-properties-dialog.c | |
parent | 285289c2e4d7d625c96d3e683dfdb01b098df373 (diff) | |
download | atril-32ae49f81c05e676a86544e66b09f65f83b9db37.tar.bz2 atril-32ae49f81c05e676a86544e66b09f65f83b9db37.tar.xz |
avoid deprecated gtk_misc_set_alignment
Diffstat (limited to 'shell/ev-annotation-properties-dialog.c')
-rw-r--r-- | shell/ev-annotation-properties-dialog.c | 30 |
1 files changed, 25 insertions, 5 deletions
diff --git a/shell/ev-annotation-properties-dialog.c b/shell/ev-annotation-properties-dialog.c index 3d65b70f..372b213a 100644 --- a/shell/ev-annotation-properties-dialog.c +++ b/shell/ev-annotation-properties-dialog.c @@ -92,7 +92,11 @@ ev_annotation_properties_dialog_constructed (GObject *object) switch (dialog->annot_type) { case EV_ANNOTATION_TYPE_TEXT: label = gtk_label_new (_("Icon:")); - gtk_misc_set_alignment (GTK_MISC (label), 0., 0.5); +#if GTK_CHECK_VERSION (3, 16, 0) + gtk_label_set_xalign (GTK_LABEL (label), 0.0); +#else + gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5); +#endif gtk_grid_attach (GTK_GRID (grid), label, 0, 5, 1, 1); gtk_widget_show (label); @@ -152,7 +156,11 @@ ev_annotation_properties_dialog_init (EvAnnotationPropertiesDialog *annot_dialog gtk_widget_show (grid); label = gtk_label_new (_("Author:")); - gtk_misc_set_alignment (GTK_MISC (label), 0., 0.5); +#if GTK_CHECK_VERSION (3, 16, 0) + gtk_label_set_xalign (GTK_LABEL (label), 0.0); +#else + gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5); +#endif gtk_grid_attach (GTK_GRID (grid), label, 0, 0, 1, 1); gtk_widget_show (label); @@ -163,7 +171,11 @@ ev_annotation_properties_dialog_init (EvAnnotationPropertiesDialog *annot_dialog gtk_widget_show (annot_dialog->author); label = gtk_label_new (_("Color:")); - gtk_misc_set_alignment (GTK_MISC (label), 0., 0.5); +#if GTK_CHECK_VERSION (3, 16, 0) + gtk_label_set_xalign (GTK_LABEL (label), 0.0); +#else + gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5); +#endif gtk_grid_attach (GTK_GRID (grid), label, 0, 1, 1, 1); gtk_widget_show (label); @@ -173,7 +185,11 @@ ev_annotation_properties_dialog_init (EvAnnotationPropertiesDialog *annot_dialog gtk_widget_show (annot_dialog->color); label = gtk_label_new (_("Style:")); - gtk_misc_set_alignment (GTK_MISC (label), 0., 0.5); +#if GTK_CHECK_VERSION (3, 16, 0) + gtk_label_set_xalign (GTK_LABEL (label), 0.0); +#else + gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5); +#endif gtk_grid_attach (GTK_GRID (grid), label, 0, 2, 1, 1); gtk_widget_show (label); @@ -204,7 +220,11 @@ ev_annotation_properties_dialog_init (EvAnnotationPropertiesDialog *annot_dialog gtk_widget_show (hbox); label = gtk_label_new (_("Initial window state:")); - gtk_misc_set_alignment (GTK_MISC (label), 0., 0.5); +#if GTK_CHECK_VERSION (3, 16, 0) + gtk_label_set_xalign (GTK_LABEL (label), 0.0); +#else + gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5); +#endif gtk_grid_attach (GTK_GRID (grid), label, 0, 4, 1, 1); gtk_widget_show (label); |