[geany/geany] 9130b8: Add ui_builder_get_object()
Colomban Wendling
git-noreply at xxxxx
Thu Jul 26 00:03:02 UTC 2012
Branch: refs/heads/document-messages
Author: Colomban Wendling <ban at herbesfolles.org>
Committer: Colomban Wendling <ban at herbesfolles.org>
Date: Fri, 20 Jan 2012 18:14:31
Commit: 9130b84d86f4e078df480a2f1e798d835b158f52
https://github.com/geany/geany/commit/9130b84d86f4e078df480a2f1e798d835b158f52
Log Message:
-----------
Add ui_builder_get_object()
This is used to get any object built from the UI file, not widgets only.
Modified Paths:
--------------
src/ui_utils.c
src/ui_utils.h
Modified: src/ui_utils.c
9 files changed, 9 insertions(+), 0 deletions(-)
===================================================================
@@ -2444,6 +2444,15 @@ GtkWidget *ui_lookup_widget(GtkWidget *widget, const gchar *widget_name)
}
+/* wraps gtk_builder_get_object()
+ * unlike ui_lookup_widget(), it does only support getting object created from the main
+ * UI file, but it can fetch any object, not only widgets */
+gpointer ui_builder_get_object (const gchar *name)
+{
+ return gtk_builder_get_object (builder, name);
+}
+
+
/* Progress Bar */
static guint progress_bar_timer_id = 0;
Modified: src/ui_utils.h
2 files changed, 2 insertions(+), 0 deletions(-)
===================================================================
@@ -209,6 +209,8 @@ void ui_setup_open_button_callback(GtkWidget *open_btn, const gchar *title,
GtkWidget *ui_lookup_widget(GtkWidget *widget, const gchar *widget_name);
+gpointer ui_builder_get_object (const gchar *name);
+
/* Compatibility functions */
GtkWidget *create_edit_menu1(void);
GtkWidget *create_prefs_dialog(void);
@@ Diff output truncated at 100000 characters. @@
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: TBD).
More information about the Commits
mailing list