From 29bffe6923b803ce4559a032b51e1b1f14ca8519 Mon Sep 17 00:00:00 2001 From: Colomban Wendling Date: Fri, 19 Aug 2016 21:39:48 +0200 Subject: [PATCH] Deprecate ui_frame_new_with_alignment() It has no usage inside Geany itself, had a bug in handling of markup in the label, has only one user in Geany-Plugins, and is fairly easy to reproduce. --- src/ui_utils.c | 2 ++ src/ui_utils.h | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/ui_utils.c b/src/ui_utils.c index 42f047f46..1b08f1117 100644 --- a/src/ui_utils.c +++ b/src/ui_utils.c @@ -1462,6 +1462,8 @@ void ui_update_view_editor_menu_items(void) * * @return @transfer{floating} The frame widget, setting the alignment container for * packing child widgets. + * + * @deprecated 1.29: Use GTK API directly **/ GEANY_API_SYMBOL GtkWidget *ui_frame_new_with_alignment(const gchar *label_text, GtkWidget **alignment) diff --git a/src/ui_utils.h b/src/ui_utils.h index e34eb3a8b..b260d0be3 100644 --- a/src/ui_utils.h +++ b/src/ui_utils.h @@ -101,8 +101,6 @@ GeanyMainWidgets; GtkWidget *ui_dialog_vbox_new(GtkDialog *dialog); -GtkWidget *ui_frame_new_with_alignment(const gchar *label_text, GtkWidget **alignment); - void ui_set_statusbar(gboolean log, const gchar *format, ...) G_GNUC_PRINTF (2, 3); void ui_table_add_row(GtkTable *table, gint row, ...) G_GNUC_NULL_TERMINATED; @@ -143,6 +141,8 @@ void ui_tree_view_set_tooltip_text_column(GtkTreeView *tree_view, gint column); #ifndef GEANY_DISABLE_DEPRECATED +GtkWidget *ui_frame_new_with_alignment(const gchar *label_text, GtkWidget **alignment) GEANY_DEPRECATED; + void ui_widget_set_tooltip_text(GtkWidget *widget, const gchar *text) GEANY_DEPRECATED_FOR(gtk_widget_set_tooltip_text); #endif /* GEANY_DISABLE_DEPRECATED */ -- 2.11.4.GIT