geany
1.38
About: Geany is a text editor (using GTK2) with basic features of an integrated development environment (syntax highlighting, code folding, symbol name auto-completion, ...). F: office T: editor programming GTK+ IDE
![]() ![]() |
#include "ui_utils.h"
#include "app.h"
#include "callbacks.h"
#include "dialogs.h"
#include "documentprivate.h"
#include "encodingsprivate.h"
#include "filetypes.h"
#include "geanymenubuttonaction.h"
#include "keyfile.h"
#include "keybindings.h"
#include "main.h"
#include "msgwindow.h"
#include "prefs.h"
#include "project.h"
#include "sciwrappers.h"
#include "sidebar.h"
#include "stash.h"
#include "support.h"
#include "symbols.h"
#include "toolbar.h"
#include "utils.h"
#include "win32.h"
#include "osx.h"
#include <string.h>
#include <ctype.h>
#include <stdarg.h>
#include <gtk/gtk.h>
#include <gdk/gdkkeysyms.h>
Go to the source code of this file.
Classes | |
struct | GeanyRecentFiles |
struct | GeanySharedMenu |
Macros | |
#define | DEFAULT_STATUSBAR_TEMPLATE |
#define | add_doc_widget(widget_name) g_ptr_array_add(widgets.document_buttons, ui_lookup_widget(main_widgets.window, widget_name)) |
#define | add_doc_toolitem(widget_name) g_ptr_array_add(widgets.document_buttons, toolbar_get_action_by_name(widget_name)) |
#define | foreach_menu(item, array) for (item = array; item->menu; item++) |
Typedefs | |
typedef struct GeanySharedMenu | GeanySharedMenu |
Enumerations | |
enum | { RECENT_FILE_FILE , RECENT_FILE_PROJECT } |
Functions | |
static void | update_recent_menu (GeanyRecentFiles *grf) |
static void | recent_file_loaded (const gchar *utf8_filename, GeanyRecentFiles *grf) |
static void | recent_file_activate_cb (GtkMenuItem *menuitem, gpointer user_data) |
static void | recent_project_activate_cb (GtkMenuItem *menuitem, gpointer user_data) |
static GtkWidget * | progress_bar_create (void) |
static void | ui_menu_sort_by_label (GtkMenu *menu) |
void | ui_widget_set_sensitive (GtkWidget *widget, gboolean set) |
static void | set_statusbar (const gchar *text, gboolean allow_override) |
void | ui_set_statusbar (gboolean log, const gchar *format,...) |
Displays text on the statusbar. More... | |
static gchar * | create_statusbar_statistics (GeanyDocument *doc, guint line, guint vcol, guint pos) |
void | ui_update_statusbar (GeanyDocument *doc, gint pos) |
void | ui_set_window_title (GeanyDocument *doc) |
void | ui_set_editor_font (const gchar *font_name) |
void | ui_set_fullscreen (void) |
void | ui_update_popup_reundo_items (GeanyDocument *doc) |
void | ui_update_popup_copy_items (GeanyDocument *doc) |
void | ui_update_popup_goto_items (gboolean enable) |
void | ui_menu_copy_items_set_sensitive (gboolean sensitive) |
void | ui_update_menu_copy_items (GeanyDocument *doc) |
void | ui_update_insert_include_item (GeanyDocument *doc, gint item) |
void | ui_update_fold_items (void) |
static void | insert_include (GeanyDocument *doc, gint pos, const gchar *include) |
static void | on_popup_insert_include_activate (GtkMenuItem *menuitem, gpointer user_data) |
static void | on_menu_insert_include_activate (GtkMenuItem *menuitem, gpointer user_data) |
static void | insert_include_items (GtkMenu *me, GtkMenu *mp, gchar **includes, gchar *label) |
void | ui_create_insert_menu_items (void) |
static void | insert_date (GeanyDocument *doc, gint pos, const gchar *date_style) |
static void | on_popup_insert_date_activate (GtkMenuItem *menuitem, gpointer user_data) |
static void | on_menu_insert_date_activate (GtkMenuItem *menuitem, gpointer user_data) |
static void | insert_date_items (GtkMenu *me, GtkMenu *mp, gchar *label) |
void | ui_create_insert_date_menu_items (void) |
void | ui_save_buttons_toggle (gboolean enable) |
static void | init_document_widgets (void) |
void | ui_document_buttons_update (void) |
static void | on_doc_sensitive_widget_destroy (GtkWidget *widget, G_GNUC_UNUSED gpointer user_data) |
void | ui_add_document_sensitive (GtkWidget *widget) |
Adds a widget to the list of widgets that should be set sensitive/insensitive when some documents are present/no documents are open. More... | |
void | ui_widget_show_hide (GtkWidget *widget, gboolean show) |
void | ui_sidebar_show_hide (void) |
void | ui_document_show_hide (GeanyDocument *doc) |
void | ui_set_search_entry_background (GtkWidget *widget, gboolean success) |
static void | recent_create_menu (GeanyRecentFiles *grf) |
static GeanyRecentFiles * | recent_get_recent_files (void) |
static GeanyRecentFiles * | recent_get_recent_projects (void) |
void | ui_create_recent_menus (void) |
static void | recent_file_activate_cb (GtkMenuItem *menuitem, G_GNUC_UNUSED gpointer user_data) |
static void | recent_project_activate_cb (GtkMenuItem *menuitem, G_GNUC_UNUSED gpointer user_data) |
static void | add_recent_file (const gchar *utf8_filename, GeanyRecentFiles *grf, const GtkRecentData *rdata) |
void | ui_add_recent_document (GeanyDocument *doc) |
void | ui_add_recent_project_file (const gchar *utf8_filename) |
gchar * | ui_menu_item_get_text (GtkMenuItem *menu_item) |
static gint | find_recent_file_item (gconstpointer list_data, gconstpointer user_data) |
void | ui_update_recent_project_menu (void) |
static void | menu_reorder_child (GtkMenu *menu, GtkWidget *child, gint position) |
static void | add_recent_file_menu_item (const gchar *utf8_filename, GeanyRecentFiles *grf, GtkWidget *menu) |
void | ui_toggle_editor_features (GeanyUIEditorFeatures feature) |
void | ui_update_view_editor_menu_items (void) |
GtkWidget * | ui_frame_new_with_alignment (const gchar *label_text, GtkWidget **alignment) |
Creates a GNOME HIG-style frame (with no border and indented child alignment). More... | |
GtkWidget * | ui_dialog_vbox_new (GtkDialog *dialog) |
Makes a fixed border for dialogs without increasing the button box border. More... | |
void | ui_dialog_set_primary_button_order (GtkDialog *dialog, gint response,...) |
GtkWidget * | ui_button_new_with_image (const gchar *stock_id, const gchar *text) |
Creates a GtkButton with custom text and a stock image similar to gtk_button_new_from_stock() . More... | |
GtkWidget * | ui_image_menu_item_new (const gchar *stock_id, const gchar *label) |
Creates a GtkImageMenuItem with a stock image and a custom label. More... | |
static void | entry_clear_icon_release_cb (GtkEntry *entry, gint icon_pos, GdkEvent *event, gpointer data) |
void | ui_entry_add_clear_icon (GtkEntry *entry) |
Adds a small clear icon to the right end of the passed entry. More... | |
void | ui_entry_add_activate_backward_signal (GtkEntry *entry) |
static void | add_to_size_group (GtkWidget *widget, gpointer size_group) |
void | ui_hbutton_box_copy_layout (GtkButtonBox *master, GtkButtonBox *copy) |
static gboolean | tree_model_find_text (GtkTreeModel *model, GtkTreeIter *iter, gint column, const gchar *text) |
void | ui_combo_box_add_to_history (GtkComboBoxText *combo_entry, const gchar *text, gint history_len) |
Prepends text to the drop down list, removing a duplicate element in the list if found. More... | |
void | ui_combo_box_prepend_text_once (GtkComboBoxText *combo, const gchar *text) |
void | ui_update_tab_status (GeanyDocument *doc) |
static gboolean | tree_model_iter_get_next (GtkTreeModel *model, GtkTreeIter *iter, gboolean down) |
static gboolean | tree_view_find (GtkTreeView *treeview, TVMatchCallback cb, gboolean down) |
gboolean | ui_tree_view_find_next (GtkTreeView *treeview, TVMatchCallback cb) |
gboolean | ui_tree_view_find_previous (GtkTreeView *treeview, TVMatchCallback cb) |
static gboolean | ui_tree_view_query_tooltip_cb (GtkWidget *widget, gint x, gint y, gboolean keyboard_tip, GtkTooltip *tooltip, gpointer data) |
void | ui_tree_view_set_tooltip_text_column (GtkTreeView *tree_view, gint column) |
Adds text tooltips to a tree view. More... | |
void | ui_widget_modify_font_from_string (GtkWidget *widget, const gchar *str) |
Modifies the font of a widget using gtk_widget_modify_font(). More... | |
GtkWidget * | ui_path_box_new (const gchar *title, GtkFileChooserAction action, GtkEntry *entry) |
Creates a GtkHBox with entry packed into it and an open button which runs a file chooser, replacing entry text (if successful) with the path returned from the GtkFileChooser . More... | |
static void | ui_path_box_open_clicked (GtkButton *button, gpointer user_data) |
void | ui_setup_open_button_callback (GtkWidget *open_btn, const gchar *title, GtkFileChooserAction action, GtkEntry *entry) |
static gchar * | run_file_chooser (const gchar *title, GtkFileChooserAction action, const gchar *utf8_path) |
void | ui_statusbar_showhide (gboolean state) |
void | ui_table_add_row (GtkTable *table, gint row,...) |
Packs all GtkWidgets passed after the row argument into a table, using one widget per cell. More... | |
static void | on_config_file_clicked (GtkWidget *widget, gpointer user_data) |
static void | free_on_closure_notify (gpointer data, GClosure *closure) |
void | ui_add_config_file_menu_item (const gchar *real_path, const gchar *label, GtkContainer *parent) |
static gboolean | sort_menu (gpointer data) |
static void | create_config_files_menu (void) |
static void | add_stock_icons (const GtkStockItem *items, gsize count) |
void | ui_init_stock_items (void) |
void | ui_init_toolbar_widgets (void) |
void | ui_swap_sidebar_pos (void) |
static void | init_recent_files (void) |
static void | ui_menu_move (GtkWidget *menu, GtkWidget *old, GtkWidget *new) |
static void | on_editor_menu_show (GtkWidget *widget, GeanySharedMenu *items) |
static void | on_editor_menu_hide (GtkWidget *widget, GeanySharedMenu *items) |
void | ui_init_prefs (void) |
static const gchar * | ui_guess_object_name (GObject *obj) |
GtkWidget * | create_edit_menu1 (void) |
GtkWidget * | create_prefs_dialog (void) |
GtkWidget * | create_project_dialog (void) |
GtkWidget * | create_toolbar_popup_menu1 (void) |
GtkWidget * | create_window1 (void) |
static GtkWidget * | ui_get_top_parent (GtkWidget *widget) |
void | ui_init_builder (void) |
static void | load_css_theme (const gchar *fn, guint priority) |
static void | init_css_styles (void) |
static void | add_css_config_file_item (void) |
void | ui_init (void) |
void | ui_finalize_builder (void) |
static void | auto_separator_update (GeanyAutoSeparator *autosep) |
static void | on_auto_separator_item_show_hide (GtkWidget *widget, gpointer user_data) |
static void | on_auto_separator_item_destroy (GtkWidget *widget, gpointer user_data) |
void | ui_auto_separator_add_ref (GeanyAutoSeparator *autosep, GtkWidget *item) |
void | ui_widget_set_tooltip_text (GtkWidget *widget, const gchar *text) |
Sets text as the contents of the tooltip for widget. More... | |
GtkWidget * | ui_lookup_widget (GtkWidget *widget, const gchar *widget_name) |
Returns a widget from a name in a component, usually created by Glade. More... | |
gpointer | ui_builder_get_object (const gchar *name) |
static gboolean | progress_bar_pulse (gpointer data) |
void | ui_progress_bar_start (const gchar *text) |
Starts a constantly pulsing progressbar in the right corner of the statusbar (if the statusbar is visible). More... | |
void | ui_progress_bar_stop (void) |
Stops a running progress bar and hides the widget again. More... | |
static gint | compare_menu_item_labels (gconstpointer a, gconstpointer b) |
void | ui_label_set_markup (GtkLabel *label, const gchar *format,...) |
GtkWidget * | ui_label_new_bold (const gchar *text) |
void | ui_menu_add_document_items (GtkMenu *menu, GeanyDocument *active, GCallback callback) |
Adds a list of document items to menu. More... | |
void | ui_menu_add_document_items_sorted (GtkMenu *menu, GeanyDocument *active, GCallback callback, GCompareFunc compare_func) |
Adds a list of document items to menu. More... | |
gboolean | ui_is_keyval_enter_or_return (guint keyval) |
Checks whether the passed keyval is the Enter or Return key. More... | |
gint | ui_get_gtk_settings_integer (const gchar *property_name, gint default_value) |
Reads an integer from the GTK default settings registry (see http://library.gnome.org/devel/gtk/stable/GtkSettings.html). More... | |
void | ui_editable_insert_text_callback (GtkEditable *editable, gchar *new_text, gint new_text_len, gint *position, gpointer data) |
GIcon * | ui_get_mime_icon (const gchar *mime_type) |
void | ui_focus_current_document (void) |
const gchar * | ui_lookup_stock_label (const gchar *stock_id) |
Finds the label text associated with stock_id. More... | |
gboolean | ui_tree_model_iter_any_next (GtkTreeModel *model, GtkTreeIter *iter, gboolean down) |
GtkWidget * | ui_create_encodings_combo_box (gboolean has_detect, gint default_enc) |
gint | ui_encodings_combo_box_get_active_encoding (GtkComboBox *combo) |
gboolean | ui_encodings_combo_box_set_active_encoding (GtkComboBox *combo, gint enc) |
Variables | |
GeanyInterfacePrefs | interface_prefs |
GeanyMainWidgets | main_widgets |
UIPrefs | ui_prefs |
UIWidgets | ui_widgets |
static GtkBuilder * | builder = NULL |
static GtkWidget * | window1 = NULL |
static GtkWidget * | toolbar_popup_menu1 = NULL |
static GtkWidget * | edit_menu1 = NULL |
static GtkWidget * | prefs_dialog = NULL |
static GtkWidget * | project_dialog = NULL |
struct { | |
GPtrArray * document_buttons | |
GtkWidget * menu_insert_include_items [2] | |
GtkWidget * popup_goto_items [4] | |
GtkWidget * popup_copy_items [3] | |
GtkWidget * menu_copy_items [3] | |
GtkWidget * redo_items [3] | |
GtkWidget * undo_items [3] | |
GtkWidget * save_buttons [4] | |
GtkWidget * config_files_menu | |
} | widgets |
static guint | progress_bar_timer_id = 0 |
#define add_doc_toolitem | ( | widget_name | ) | g_ptr_array_add(widgets.document_buttons, toolbar_get_action_by_name(widget_name)) |
Definition at line 861 of file ui_utils.c.
#define add_doc_widget | ( | widget_name | ) | g_ptr_array_add(widgets.document_buttons, ui_lookup_widget(main_widgets.window, widget_name)) |
Definition at line 858 of file ui_utils.c.
#define DEFAULT_STATUSBAR_TEMPLATE |
Definition at line 61 of file ui_utils.c.
#define foreach_menu | ( | item, | |
array | |||
) | for (item = array; item->menu; item++) |
Definition at line 2297 of file ui_utils.c.
typedef struct GeanySharedMenu GeanySharedMenu |
anonymous enum |
Enumerator | |
---|---|
RECENT_FILE_FILE | |
RECENT_FILE_PROJECT |
Definition at line 100 of file ui_utils.c.
|
static |
Definition at line 2569 of file ui_utils.c.
References app, GeanyApp::configdir, NULL, and ui_add_config_file_menu_item().
Referenced by ui_init().
|
static |
Definition at line 1202 of file ui_utils.c.
References file_prefs, GeanyFilePrefs::mru_length, NULL, RECENT_FILE_FILE, recent_file_loaded(), GeanyRecentFiles::recent_queue, GeanyRecentFiles::type, and update_recent_menu().
Referenced by ui_add_recent_document(), and ui_add_recent_project_file().
|
static |
Definition at line 1331 of file ui_utils.c.
References GeanyRecentFiles::activate_cb, gtk_container_add(), menu_reorder_child(), NULL, and GeanyRecentFiles::toolbar.
Referenced by recent_file_loaded(), and update_recent_menu().
|
static |
Definition at line 2197 of file ui_utils.c.
Referenced by ui_init_stock_items().
|
static |
Definition at line 1641 of file ui_utils.c.
Referenced by ui_hbutton_box_copy_layout().
|
static |
Definition at line 2651 of file ui_utils.c.
References ui_widget_show_hide().
Referenced by on_auto_separator_item_destroy(), on_auto_separator_item_show_hide(), and ui_auto_separator_add_ref().
|
static |
Definition at line 2854 of file ui_utils.c.
References ui_menu_item_get_text(), and utils_str_casecmp().
Referenced by ui_menu_sort_by_label().
|
static |
Definition at line 2176 of file ui_utils.c.
References _, gtk_container_add(), main_widgets, sort_menu(), ui_lookup_widget(), ui_widgets, widgets, and GeanyMainWidgets::window.
Referenced by ui_init().
GtkWidget * create_edit_menu1 | ( | void | ) |
GtkWidget * create_prefs_dialog | ( | void | ) |
Definition at line 2386 of file ui_utils.c.
References prefs_dialog.
Referenced by prefs_show_dialog().
GtkWidget * create_project_dialog | ( | void | ) |
Definition at line 2392 of file ui_utils.c.
References project_dialog.
Referenced by create_properties_dialog().
|
static |
Definition at line 188 of file ui_utils.c.
References _, GeanyDocument::changed, DEFAULT_STATUSBAR_TEMPLATE, GeanyDocument::editor, editor_get_indent_prefs(), EMPTY, GeanyDocument::encoding, encodings_is_unicode_charset(), GeanyDocument::file_type, filetypes_get_display_name(), GEANY_INDENT_TYPE_BOTH, GEANY_INDENT_TYPE_SPACES, GEANY_INDENT_TYPE_TABS, GeanyDocument::has_bom, line, NULL, pos, GeanyDocument::readonly, sci, GeanyEditor::sci, sci_get_col_from_position(), sci_get_eol_mode(), sci_get_line_count(), sci_get_lines_selected(), sci_get_overtype(), sci_get_selected_text_length(), sci_get_selection_end(), sci_get_selection_start(), sci_get_style_at(), symbols_get_current_scope(), GeanyIndentPrefs::type, ui_prefs, and utils_get_eol_short_name().
Referenced by ui_update_statusbar().
GtkWidget * create_toolbar_popup_menu1 | ( | void | ) |
Definition at line 2398 of file ui_utils.c.
References toolbar_popup_menu1.
Referenced by main_init().
GtkWidget * create_window1 | ( | void | ) |
|
static |
Definition at line 1585 of file ui_utils.c.
References entry.
Referenced by ui_entry_add_clear_icon().
|
static |
Definition at line 1280 of file ui_utils.c.
References ui_menu_item_get_text(), and utils_str_equal().
Referenced by recent_file_loaded().
|
static |
Definition at line 2136 of file ui_utils.c.
Referenced by ui_add_config_file_menu_item().
|
static |
Definition at line 2527 of file ui_utils.c.
References app, GeanyApp::configdir, GeanyApp::datadir, load_css_theme(), and NULL.
Referenced by ui_init().
|
static |
Definition at line 864 of file ui_utils.c.
References add_doc_toolitem, add_doc_widget, and widgets.
Referenced by ui_init().
|
static |
Definition at line 2262 of file ui_utils.c.
References GEANY_MENU_BUTTON_ACTION, geany_menu_button_action_set_menu(), main_widgets, toolbar_get_action_by_name(), ui_lookup_widget(), ui_widgets, and GeanyMainWidgets::window.
Referenced by ui_init().
|
static |
Definition at line 695 of file ui_utils.c.
References _, dialogs_show_input(), GeanyDocument::editor, format, main_widgets, NULL, pos, GeanyEditor::sci, sci_end_undo_action(), sci_get_current_position(), sci_goto_pos(), sci_insert_text(), sci_start_undo_action(), SETPTR, ui_prefs, ui_set_statusbar(), utils_beep(), utils_get_date_time(), utils_str_equal(), and GeanyMainWidgets::window.
Referenced by on_menu_insert_date_activate(), and on_popup_insert_date_activate().
|
static |
Definition at line 768 of file ui_utils.c.
References gtk_container_add(), label, on_menu_insert_date_activate(), and on_popup_insert_date_activate().
Referenced by ui_create_insert_date_menu_items().
|
static |
Definition at line 571 of file ui_utils.c.
References GeanyDocument::editor, NULL, pos, GeanyEditor::sci, sci_end_undo_action(), sci_get_current_position(), sci_goto_pos(), sci_insert_text(), sci_start_undo_action(), and text.
Referenced by on_menu_insert_include_activate(), and on_popup_insert_include_activate().
|
static |
Definition at line 613 of file ui_utils.c.
References gtk_container_add(), gtk_widget_show_all(), label, NULL, on_menu_insert_include_activate(), and on_popup_insert_include_activate().
Referenced by ui_create_insert_menu_items().
|
static |
Definition at line 2507 of file ui_utils.c.
References error(), geany_debug(), and NULL.
Referenced by init_css_styles().
|
static |
Definition at line 1319 of file ui_utils.c.
References position.
Referenced by add_recent_file_menu_item(), recent_file_loaded(), and ui_menu_sort_by_label().
|
static |
Definition at line 2677 of file ui_utils.c.
References auto_separator_update(), and MAX.
Referenced by ui_auto_separator_add_ref().
|
static |
Definition at line 2665 of file ui_utils.c.
References auto_separator_update().
Referenced by ui_auto_separator_add_ref().
|
static |
Definition at line 2084 of file ui_utils.c.
References app, GeanyApp::configdir, GeanyApp::datadir, document_new_file(), document_open_file(), document_set_text_changed(), GeanyDocument::editor, filetypes, GEANY_FILETYPES_CONF, GEANY_KEY_GROUP_FORMAT, GEANY_KEYS_FORMAT_COMMENTLINETOGGLE, keybindings_send_command(), NULL, GeanyEditor::sci, sci_empty_undo_buffer(), sci_select_all(), sci_set_current_line(), strstr(), ui_document_show_hide(), utils_free_pointers(), and utils_get_utf8_from_locale().
Referenced by ui_add_config_file_menu_item().
|
static |
Definition at line 962 of file ui_utils.c.
References widgets.
Referenced by ui_add_document_sensitive().
|
static |
Definition at line 2315 of file ui_utils.c.
References GeanyMainWidgets::editor_menu, foreach_menu, main_widgets, GeanySharedMenu::menu, GeanySharedMenu::menubar_item, GeanySharedMenu::popup_item, ui_lookup_widget(), ui_menu_move(), and GeanyMainWidgets::window.
Referenced by ui_init().
|
static |
Definition at line 2300 of file ui_utils.c.
References GeanyMainWidgets::editor_menu, foreach_menu, main_widgets, GeanySharedMenu::menu, GeanySharedMenu::menubar_item, GeanySharedMenu::popup_item, ui_lookup_widget(), ui_menu_move(), and GeanyMainWidgets::window.
Referenced by ui_init().
|
static |
Definition at line 762 of file ui_utils.c.
References document_get_current(), and insert_date().
Referenced by insert_date_items(), and ui_create_insert_date_menu_items().
|
static |
Definition at line 607 of file ui_utils.c.
References document_get_current(), and insert_include().
Referenced by insert_include_items(), and ui_create_insert_menu_items().
|
static |
Definition at line 756 of file ui_utils.c.
References document_get_current(), editor_info, and insert_date().
Referenced by insert_date_items(), and ui_create_insert_date_menu_items().
|
static |
Definition at line 601 of file ui_utils.c.
References document_get_current(), editor_info, and insert_include().
Referenced by insert_include_items(), and ui_create_insert_menu_items().
|
static |
|
static |
Definition at line 2795 of file ui_utils.c.
References main_widgets, and GeanyMainWidgets::progressbar.
Referenced by ui_progress_bar_start().
|
static |
Definition at line 1111 of file ui_utils.c.
References GeanyRecentFiles::activate_cb, file_prefs, filename, gtk_container_add(), GeanyRecentFiles::menubar, GeanyFilePrefs::mru_length, NULL, GeanyRecentFiles::recent_queue, and GeanyRecentFiles::toolbar.
Referenced by ui_create_recent_menus().
|
static |
Definition at line 1175 of file ui_utils.c.
References document_open_file(), NULL, recent_file_loaded(), recent_get_recent_files(), ui_menu_item_get_text(), and utils_get_locale_from_utf8().
|
static |
Referenced by recent_get_recent_files().
|
static |
Definition at line 1350 of file ui_utils.c.
References add_recent_file_menu_item(), find_recent_file_item(), menu_reorder_child(), GeanyRecentFiles::menubar, NULL, RECENT_FILE_PROJECT, GeanyRecentFiles::recent_queue, GeanyRecentFiles::toolbar, GeanyRecentFiles::type, and ui_update_recent_project_menu().
Referenced by add_recent_file(), recent_file_activate_cb(), and recent_project_activate_cb().
|
static |
Definition at line 1137 of file ui_utils.c.
References GeanyRecentFiles::activate_cb, GEANY_MENU_BUTTON_ACTION, geany_menu_button_action_get_menu(), GeanyRecentFiles::menubar, NULL, recent_file_activate_cb(), RECENT_FILE_FILE, GeanyRecentFiles::recent_queue, GeanyRecentFiles::toolbar, toolbar_get_action_by_name(), ui_prefs, and ui_widgets.
Referenced by recent_file_activate_cb(), ui_add_recent_document(), and ui_create_recent_menus().
|
static |
Definition at line 1153 of file ui_utils.c.
References GeanyRecentFiles::activate_cb, GeanyRecentFiles::menubar, NULL, RECENT_FILE_PROJECT, recent_project_activate_cb(), GeanyRecentFiles::recent_queue, GeanyRecentFiles::toolbar, ui_prefs, and ui_widgets.
Referenced by recent_project_activate_cb(), ui_add_recent_project_file(), ui_create_recent_menus(), and ui_update_recent_project_menu().
|
static |
Definition at line 1188 of file ui_utils.c.
References app, GeanyApp::project, project_close, project_load_file_with_session(), recent_file_loaded(), recent_get_recent_projects(), ui_menu_item_get_text(), and utils_get_locale_from_utf8().
|
static |
Referenced by recent_get_recent_projects().
|
static |
Definition at line 1964 of file ui_utils.c.
References dialog, main_widgets, NULL, utils_get_locale_from_utf8(), utils_get_utf8_from_locale(), and GeanyMainWidgets::window.
Referenced by ui_path_box_open_clicked().
|
static |
Definition at line 134 of file ui_utils.c.
References interface_prefs, GeanyInterfacePrefs::statusbar_visible, text, and ui_widgets.
Referenced by ui_set_statusbar(), and ui_update_statusbar().
|
static |
Definition at line 2169 of file ui_utils.c.
References ui_menu_sort_by_label().
Referenced by create_config_files_menu().
|
static |
Definition at line 1668 of file ui_utils.c.
References text, and utils_str_equal().
Referenced by ui_combo_box_add_to_history(), and ui_combo_box_prepend_text_once().
|
static |
Definition at line 1753 of file ui_utils.c.
Referenced by tree_view_find().
|
static |
Definition at line 1771 of file ui_utils.c.
References NULL, tree_model_iter_get_next(), and ui_prefs.
Referenced by ui_tree_view_find_next(), and ui_tree_view_find_previous().
void ui_add_config_file_menu_item | ( | const gchar * | real_path, |
const gchar * | label, | ||
GtkContainer * | parent | ||
) |
Definition at line 2144 of file ui_utils.c.
References free_on_closure_notify(), gtk_container_add(), label, on_config_file_clicked(), and widgets.
Referenced by add_css_config_file_item(), create_set_filetype_menu(), editor_init(), setup_config_file_menus(), and symbols_init().
void ui_add_document_sensitive | ( | GtkWidget * | widget | ) |
Adds a widget to the list of widgets that should be set sensitive/insensitive when some documents are present/no documents are open.
It will be removed when the widget is destroyed.
widget | The widget to add. |
Definition at line 976 of file ui_utils.c.
References main_widgets, GeanyMainWidgets::notebook, NULL, on_doc_sensitive_widget_destroy(), ui_widget_set_sensitive(), and widgets.
Referenced by demo_init(), plugin_init(), and plugin_load().
void ui_add_recent_document | ( | GeanyDocument * | doc | ) |
Definition at line 1232 of file ui_utils.c.
References add_recent_file(), GeanyDocument::file_name, GeanyDocument::file_type, groups, GeanyFiletype::mime_type, NULL, and recent_get_recent_files().
Referenced by document_open_file_full(), document_save_file_as(), main_handle_filename(), and remove_page().
void ui_add_recent_project_file | ( | const gchar * | utf8_filename | ) |
Definition at line 1257 of file ui_utils.c.
References add_recent_file(), NULL, and recent_get_recent_projects().
Referenced by project_load_file(), and run_new_dialog().
void ui_auto_separator_add_ref | ( | GeanyAutoSeparator * | autosep, |
GtkWidget * | item | ||
) |
Definition at line 2695 of file ui_utils.c.
References auto_separator_update(), on_auto_separator_item_destroy(), and on_auto_separator_item_show_hide().
Referenced by plugin_add_toolbar_item().
gpointer ui_builder_get_object | ( | const gchar * | name | ) |
Definition at line 2773 of file ui_utils.c.
Referenced by dialogs_show_file_properties(), and prefs_show_dialog().
GtkWidget * ui_button_new_with_image | ( | const gchar * | stock_id, |
const gchar * | text | ||
) |
Creates a GtkButton
with custom text and a stock image similar to gtk_button_new_from_stock()
.
stock_id | A GTK_STOCK_NAME string. |
text | Button label text, can include mnemonics. |
GtkButton
. Definition at line 1552 of file ui_utils.c.
References text.
Referenced by create_find_dialog(), project_new(), run_unsaved_dialog(), and tb_editor_create_dialog().
void ui_combo_box_add_to_history | ( | GtkComboBoxText * | combo_entry, |
const gchar * | text, | ||
gint | history_len | ||
) |
Prepends text to the drop down list, removing a duplicate element in the list if found.
Also ensures there are <= history_len elements.
combo_entry | . |
text | Text to add, or NULL for current entry text. |
history_len | Max number of items, or 0 for default. |
Definition at line 1697 of file ui_utils.c.
References text, and tree_model_find_text().
Referenced by on_filter_activate(), on_find_dialog_response(), on_find_in_files_dialog_response(), on_input_dialog_response(), on_replace_dialog_response(), refresh(), and search_show_find_in_files_dialog_full().
void ui_combo_box_prepend_text_once | ( | GtkComboBoxText * | combo, |
const gchar * | text | ||
) |
Definition at line 1730 of file ui_utils.c.
References text, and tree_model_find_text().
Referenced by search_show_find_in_files_dialog_full().
GtkWidget * ui_create_encodings_combo_box | ( | gboolean | has_detect, |
gint | default_enc | ||
) |
Definition at line 3165 of file ui_utils.c.
References encodings_encoding_store_cell_data_func(), encodings_encoding_store_get_iter(), encodings_encoding_store_new(), GEANY_ENCODING_NONE, GEANY_ENCODINGS_MAX, and NULL.
Referenced by add_file_open_extra_widget(), and create_fif_dialog().
void ui_create_insert_date_menu_items | ( | void | ) |
Definition at line 784 of file ui_utils.c.
References _, GeanyMainWidgets::editor_menu, gtk_container_add(), insert_date_items(), main_widgets, on_menu_insert_date_activate(), on_popup_insert_date_activate(), ui_hookup_widget(), ui_lookup_widget(), and GeanyMainWidgets::window.
Referenced by main_lib().
void ui_create_insert_menu_items | ( | void | ) |
Definition at line 646 of file ui_utils.c.
References _, GeanyMainWidgets::editor_menu, gtk_container_add(), insert_include_items(), main_widgets, NULL, on_menu_insert_include_activate(), on_popup_insert_include_activate(), ui_lookup_widget(), and GeanyMainWidgets::window.
Referenced by main_lib().
void ui_create_recent_menus | ( | void | ) |
Definition at line 1168 of file ui_utils.c.
References recent_create_menu(), recent_get_recent_files(), and recent_get_recent_projects().
Referenced by main_lib().
void ui_dialog_set_primary_button_order | ( | GtkDialog * | dialog, |
gint | response, | ||
... | |||
) |
Definition at line 1523 of file ui_utils.c.
References dialog, and position.
Referenced by tools_color_chooser().
GtkWidget * ui_dialog_vbox_new | ( | GtkDialog * | dialog | ) |
Makes a fixed border for dialogs without increasing the button box border.
dialog | The parent container for the GtkVBox . |
GtkVBox
. Definition at line 1499 of file ui_utils.c.
References dialog.
Referenced by cc_show_dialog_custom_commands(), configure_plugins(), create_dialog(), create_fif_dialog(), create_find_dialog(), create_replace_dialog(), dialogs_show_input_full(), dialogs_show_input_numeric(), highlighting_show_color_scheme_dialog(), log_show_debug_messages_dialog(), pm_show_dialog(), project_new(), show_build_commands_dialog(), tb_editor_create_dialog(), tools_show_dialog_insert_special_chars(), and tools_word_count().
void ui_document_buttons_update | ( | void | ) |
Definition at line 946 of file ui_utils.c.
References main_widgets, GeanyMainWidgets::notebook, ui_widget_set_sensitive(), and widgets.
Referenced by document_create(), main_lib(), remove_page(), and toolbar_reload().
void ui_document_show_hide | ( | GeanyDocument * | doc | ) |
Definition at line 1029 of file ui_utils.c.
References GeanyEditor::auto_indent, document_get_current(), GeanyDocument::editor, editor_get_indent_prefs(), GeanyDocument::encoding, encodings_is_unicode_charset(), encodings_select_radio_item(), GeanyDocument::file_type, filetypes_select_radio_item(), GEANY_INDENT_TYPE_BOTH, GEANY_INDENT_TYPE_SPACES, GEANY_INDENT_TYPE_TABS, GeanyDocument::has_bom, ignore_callback, GeanyDocument::is_valid, GeanyEditor::line_breaking, GeanyEditor::line_wrapping, main_widgets, name, NULL, GeanyDocument::readonly, SC_EOL_CR, SC_EOL_LF, GeanyEditor::sci, sci_get_eol_mode(), GeanyIndentPrefs::type, ui_lookup_widget(), ui_widget_set_sensitive(), GeanyIndentPrefs::width, and GeanyMainWidgets::window.
Referenced by cb_func_document_action(), document_clone(), document_new_file(), document_open_file_full(), document_redo(), document_set_filetype(), document_undo(), on_config_file_clicked(), on_detect_type_from_file_activate(), on_detect_width_from_file_activate(), on_notebook1_switch_page_after(), on_prefs_dialog_response(), and on_reset_indentation1_activate().
void ui_editable_insert_text_callback | ( | GtkEditable * | editable, |
gchar * | new_text, | ||
gint | new_text_len, | ||
gint * | position, | ||
gpointer | data | ||
) |
Definition at line 3036 of file ui_utils.c.
References NULL, and position.
Referenced by dialogs_show_input_goto_line(), and geany_entry_action_connect_proxy().
gint ui_encodings_combo_box_get_active_encoding | ( | GtkComboBox * | combo | ) |
Definition at line 3187 of file ui_utils.c.
References encodings_encoding_store_get_encoding(), and GEANY_ENCODING_NONE.
Referenced by on_find_in_files_dialog_response(), on_prefs_dialog_response(), and open_file_dialog_handle_response().
gboolean ui_encodings_combo_box_set_active_encoding | ( | GtkComboBox * | combo, |
gint | enc | ||
) |
Definition at line 3203 of file ui_utils.c.
References encodings_encoding_store_get_iter().
Referenced by open_file_dialog_apply_settings(), prefs_init_dialog(), and search_show_find_in_files_dialog_full().
void ui_entry_add_activate_backward_signal | ( | GtkEntry * | entry | ) |
Definition at line 1613 of file ui_utils.c.
Referenced by create_find_dialog(), and geany_entry_action_create_tool_item().
void ui_entry_add_clear_icon | ( | GtkEntry * | entry | ) |
Adds a small clear icon to the right end of the passed entry.
A callback to clear the contents of the GtkEntry is automatically added.
entry | The GtkEntry object to which the icon should be attached. |
Definition at line 1604 of file ui_utils.c.
References entry, entry_clear_icon_release_cb(), and NULL.
Referenced by create_custom_widget(), create_fif_dialog(), create_find_dialog(), create_properties_dialog(), create_replace_dialog(), dialogs_show_input_full(), dialogs_show_input_numeric(), geany_entry_action_create_tool_item(), make_filterbar(), pm_show_dialog(), prefs_show_dialog(), and project_new().
void ui_finalize_builder | ( | void | ) |
Definition at line 2632 of file ui_utils.c.
References builder, edit_menu1, prefs_dialog, project_dialog, toolbar_popup_menu1, and window1.
Referenced by do_main_quit().
void ui_focus_current_document | ( | void | ) |
Definition at line 3100 of file ui_utils.c.
References document_get_current(), document_grab_focus(), and NULL.
Referenced by destroy_project(), project_load_file_with_session(), and project_new().
GtkWidget * ui_frame_new_with_alignment | ( | const gchar * | label_text, |
GtkWidget ** | alignment | ||
) |
Creates a GNOME HIG-style frame (with no border and indented child alignment).
label_text | The label text. |
alignment | An address to store the alignment widget pointer. |
Definition at line 1475 of file ui_utils.c.
References gtk_container_add(), label, NULL, and ui_label_new_bold().
gint ui_get_gtk_settings_integer | ( | const gchar * | property_name, |
gint | default_value | ||
) |
Reads an integer from the GTK default settings registry (see http://library.gnome.org/devel/gtk/stable/GtkSettings.html).
property_name | The property to read. |
default_value | The default value in case the value could not be read. |
Definition at line 3022 of file ui_utils.c.
References NULL.
Referenced by toolbar_notify_style_cb(), toolbar_set_icon_size(), and toolbar_set_icon_style().
GIcon * ui_get_mime_icon | ( | const gchar * | mime_type | ) |
Definition at line 3058 of file ui_utils.c.
References icon_name, NULL, and strstr().
Referenced by filetypes_load_config(), get_doc_parent(), and sidebar_openfiles_add().
|
static |
|
static |
Definition at line 2362 of file ui_utils.c.
Referenced by ui_init_builder().
void ui_hbutton_box_copy_layout | ( | GtkButtonBox * | master, |
GtkButtonBox * | copy | ||
) |
Definition at line 1651 of file ui_utils.c.
References add_to_size_group().
Referenced by create_find_dialog(), and create_replace_dialog().
GtkWidget * ui_image_menu_item_new | ( | const gchar * | stock_id, |
const gchar * | label | ||
) |
Creates a GtkImageMenuItem
with a stock image and a custom label.
stock_id | Stock image ID, e.g. GTK_STOCK_OPEN . |
label | Menu item label, can include mnemonics. |
GtkImageMenuItem
.Definition at line 1574 of file ui_utils.c.
References label.
Referenced by build_init(), create_openfiles_popup_menu(), create_popup_menu(), create_taglist_popup_menu(), kb_show_popup_menu(), and show_tab_bar_popup_menu().
void ui_init | ( | void | ) |
Definition at line 2578 of file ui_utils.c.
References add_css_config_file_item(), create_config_files_menu(), GeanyMainWidgets::editor_menu, init_css_styles(), init_document_widgets(), init_recent_files(), main_widgets, NULL, on_editor_menu_hide(), on_editor_menu_show(), progress_bar_create(), GeanyMainWidgets::progressbar, ui_init_toolbar_widgets(), ui_lookup_widget(), ui_widgets, widgets, and GeanyMainWidgets::window.
Referenced by main_init().
void ui_init_builder | ( | void | ) |
Definition at line 2433 of file ui_utils.c.
References _, app, builder, callbacks_connect(), GeanyApp::datadir, dialogs_show_msgbox_with_secondary(), edit_menu1, error(), GETTEXT_PACKAGE, name, NULL, prefs_dialog, project_dialog, toolbar_popup_menu1, ui_get_top_parent(), ui_guess_object_name(), ui_hookup_widget(), and window1.
Referenced by main_init().
void ui_init_prefs | ( | void | ) |
Definition at line 2332 of file ui_utils.c.
References _, GeanyInterfacePrefs::compiler_tab_autoscroll, configuration_add_various_pref_group(), DEFAULT_STATUSBAR_TEMPLATE, group, interface_prefs, GeanyInterfacePrefs::msgwin_compiler_visible, GeanyInterfacePrefs::msgwin_messages_visible, GeanyInterfacePrefs::msgwin_scribble_visible, GeanyInterfacePrefs::msgwin_status_visible, GeanyInterfacePrefs::show_symbol_list_expanders, stash_group_add_boolean(), stash_group_add_string(), stash_group_new(), and ui_prefs.
Referenced by main_lib().
void ui_init_stock_items | ( | void | ) |
Definition at line 2218 of file ui_utils.c.
References add_stock_icons(), GEANY_STOCK_BUILD, GEANY_STOCK_CLOSE_ALL, GEANY_STOCK_SAVE_ALL, GETTEXT_PACKAGE, and N_.
Referenced by main_init().
void ui_init_toolbar_widgets | ( | void | ) |
Definition at line 2232 of file ui_utils.c.
References toolbar_get_widget_by_name(), and widgets.
Referenced by toolbar_reload(), and ui_init().
gboolean ui_is_keyval_enter_or_return | ( | guint | keyval | ) |
Checks whether the passed keyval is the Enter or Return key.
There are three different Enter/Return key values (GDK_KEY_Return
, GDK_KEY_ISO_Enter
, GDK_KEY_KP_Enter
). This is just a convenience function.
keyval | A keyval. |
TRUE
if keyval is the one of the Enter/Return key values, otherwise FALSE
. Definition at line 3009 of file ui_utils.c.
Referenced by on_key_press(), on_msgwin_key_press_event(), and sidebar_key_press_cb().
GtkWidget * ui_label_new_bold | ( | const gchar * | text | ) |
Definition at line 2909 of file ui_utils.c.
References label, NULL, text, and ui_label_set_markup().
Referenced by build_commands_table(), and ui_frame_new_with_alignment().
void ui_label_set_markup | ( | GtkLabel * | label, |
const gchar * | format, | ||
... | |||
) |
Definition at line 2894 of file ui_utils.c.
References format, label, and text.
Referenced by build_commands_table(), ui_label_new_bold(), and ui_menu_add_document_items_sorted().
const gchar * ui_lookup_stock_label | ( | const gchar * | stock_id | ) |
Finds the label text associated with stock_id.
stock_id | stock_id to lookup e.g. GTK_STOCK_OPEN . |
Definition at line 3114 of file ui_utils.c.
References NULL.
Referenced by init_default_kb(), and ui_tool_button_new().
GtkWidget * ui_lookup_widget | ( | GtkWidget * | widget, |
const gchar * | widget_name | ||
) |
Returns a widget from a name in a component, usually created by Glade.
Call it with the toplevel widget in the component (i.e. a window/dialog), or alternatively any widget in the component, and the name of the widget you want returned.
widget | Widget with the widget_name property set. |
widget_name | Name to lookup. |
Definition at line 2743 of file ui_utils.c.
References NULL.
Referenced by add_kb(), apply_settings(), build_keybinding(), cb_func_editor_action(), cb_func_insert_action(), cb_func_menu_fullscreen(), cb_func_menu_messagewindow(), configuration_apply_settings(), create_build_menu(), create_config_files_menu(), create_file_template_menu(), create_properties_dialog(), create_set_filetype_menu(), dialogs_show_file_properties(), document_set_encoding(), encodings_init(), init_recent_files(), kb_init_tree(), key_dialog_show_prefs(), main_init(), msgwin_init(), msgwin_show_hide(), on_edit1_select(), on_editor_menu_hide(), on_editor_menu_show(), on_enable_plugins_toggled(), on_file_open_show_hidden_notify(), on_file_save_dialog_response(), on_find_replace_checkbutton_toggled(), on_hide_toolbar1_activate(), on_load_settings(), on_menu_project1_activate(), on_menu_toggle_all_additional_widgets1_activate(), on_open_encoding_toggled(), on_prefs_dialog_response(), on_prefs_print_page_header_toggled(), on_prefs_print_radio_button_toggled(), on_search1_activate(), on_show_notebook_tabs_toggled(), on_show_symbol_list_toggled(), on_sidebar_visible_toggled(), on_toolbar_show_toggled(), on_use_folding_toggled(), on_window_state_event(), open_file_dialog_apply_settings(), open_file_dialog_handle_response(), open_preferences_help(), prefs_init_dialog(), prefs_show_dialog(), prepare_openfiles(), project_apply_prefs(), project_setup_prefs(), save_ui_prefs(), show_notebook_page(), show_project_properties(), toolbar_reload(), toolbar_show_hide(), toolbar_update_ui(), tools_create_insert_custom_command_menu_items(), ui_create_insert_date_menu_items(), ui_create_insert_menu_items(), ui_document_show_hide(), ui_init(), ui_sidebar_show_hide(), ui_swap_sidebar_pos(), ui_update_fold_items(), ui_update_view_editor_menu_items(), and update_config().
void ui_menu_add_document_items | ( | GtkMenu * | menu, |
GeanyDocument * | active, | ||
GCallback | callback | ||
) |
Adds a list of document items to menu.
menu | Menu. |
active | Which document to highlight, or NULL . |
callback | is used for each menu item's "activate" signal and will be passed the corresponding document pointer as user_data . |
doc->is_valid
in the callback. Definition at line 2929 of file ui_utils.c.
References NULL, and ui_menu_add_document_items_sorted().
Referenced by on_doc_show_menu(), and show_tab_bar_popup_menu().
void ui_menu_add_document_items_sorted | ( | GtkMenu * | menu, |
GeanyDocument * | active, | ||
GCallback | callback, | ||
GCompareFunc | compare_func | ||
) |
Adds a list of document items to menu.
compare_func might be NULL to not sort the documents in the menu. In this case, the order of the document tabs is used.
See document_compare_by_display_name() for an example sort function.
menu | Menu. |
active | Which document to highlight, or NULL . |
callback | is used for each menu item's "activate" signal and will be passed the corresponding document pointer as user_data . |
compare_func | is used to sort the list. Might be NULL to not sort the list. |
doc->is_valid
in the callback. Definition at line 2952 of file ui_utils.c.
References DOC_FILENAME, document_compare_by_tab_order(), document_get_status_widget_class(), documents, GeanyDocument::file_type, foreach_document, gtk_container_add(), GeanyFiletype::icon, main_widgets, GeanyMainWidgets::notebook, NULL, and ui_label_set_markup().
Referenced by ui_menu_add_document_items().
void ui_menu_copy_items_set_sensitive | ( | gboolean | sensitive | ) |
Definition at line 513 of file ui_utils.c.
References ui_widget_set_sensitive(), and widgets.
Referenced by on_edit1_deselect(), and ui_update_menu_copy_items().
gchar * ui_menu_item_get_text | ( | GtkMenuItem * | menu_item | ) |
Definition at line 1264 of file ui_utils.c.
Referenced by compare_menu_item_labels(), find_recent_file_item(), on_indent_width_activate(), on_new_with_file_template(), recent_file_activate_cb(), and recent_project_activate_cb().
|
static |
Definition at line 2280 of file ui_utils.c.
References NULL.
Referenced by on_editor_menu_hide(), and on_editor_menu_show().
|
static |
Definition at line 2877 of file ui_utils.c.
References compare_menu_item_labels(), foreach_list, list, menu_reorder_child(), and pos.
Referenced by sort_menu().
GtkWidget * ui_path_box_new | ( | const gchar * | title, |
GtkFileChooserAction | action, | ||
GtkEntry * | entry | ||
) |
Creates a GtkHBox
with entry packed into it and an open button which runs a file chooser, replacing entry text (if successful) with the path returned from the GtkFileChooser
.
GtkComboBoxEntry
. title | The file chooser dialog title, or NULL . |
action | The mode of the file chooser. |
entry | Can be an unpacked GtkEntry , or the child of an unpacked widget, such as GtkComboBoxEntry . |
GtkHBox
. Definition at line 1917 of file ui_utils.c.
References entry, gtk_container_add(), NULL, path_entry, and ui_setup_open_button_callback().
Referenced by create_fif_dialog(), and project_new().
|
static |
Definition at line 2002 of file ui_utils.c.
References _, entry, NULL, run_file_chooser(), and ui_widgets.
Referenced by ui_setup_open_button_callback().
void ui_progress_bar_start | ( | const gchar * | text | ) |
Starts a constantly pulsing progressbar in the right corner of the statusbar (if the statusbar is visible).
This is a convenience function which adds a timer to pulse the progressbar constantly until ui_progress_bar_stop() is called. You can use this function when you have time consuming asynchronous operation and want to display some activity in the GUI and when you don't know about detailed progress steps. The progressbar widget is hidden by default when it is not active. This function and ui_progress_bar_stop() will show and hide it automatically for you.
You can also access the progressbar widget directly using geany->main_widgets->progressbar
and use the GtkProgressBar API to set discrete fractions to display better progress information. In this case, you need to show and hide the widget yourself. You can find some example code in src/printing.c
.
text | The text to be shown as the progress bar label or NULL to leave it empty. |
Definition at line 2822 of file ui_utils.c.
References interface_prefs, main_widgets, NULL, progress_bar_pulse(), progress_bar_timer_id, GeanyMainWidgets::progressbar, GeanyInterfacePrefs::statusbar_visible, and text.
Referenced by build_command(), and search_find_in_files().
void ui_progress_bar_stop | ( | void | ) |
Stops a running progress bar and hides the widget again.
Definition at line 2842 of file ui_utils.c.
References main_widgets, progress_bar_timer_id, and GeanyMainWidgets::progressbar.
Referenced by build_exit_cb(), and search_finished().
void ui_save_buttons_toggle | ( | gboolean | enable | ) |
Definition at line 830 of file ui_utils.c.
References documents, documents_array, main_widgets, GeanyMainWidgets::notebook, ui_prefs, ui_widget_set_sensitive(), and widgets.
Referenced by document_set_text_changed(), main_lib(), on_notebook1_switch_page_after(), on_prefs_dialog_response(), remove_page(), replace_in_session(), and toolbar_reload().
void ui_set_editor_font | ( | const gchar * | font_name | ) |
Definition at line 413 of file ui_utils.c.
References _, documents, documents_array, GeanyInterfacePrefs::editor_font, editor_set_font(), interface_prefs, NULL, and ui_set_statusbar().
Referenced by on_font_dialog_response(), and on_prefs_font_choosed().
void ui_set_fullscreen | ( | void | ) |
Definition at line 440 of file ui_utils.c.
References main_widgets, ui_prefs, and GeanyMainWidgets::window.
Referenced by configuration_apply_settings(), and on_fullscreen1_toggled().
void ui_set_search_entry_background | ( | GtkWidget * | widget, |
gboolean | success | ||
) |
Definition at line 1105 of file ui_utils.c.
References NULL.
Referenced by do_toolbar_search(), on_find_dialog_response(), on_replace_dialog_response(), on_toolbutton_search_clicked(), search_find_again(), search_show_find_dialog(), and search_show_replace_dialog().
void ui_set_statusbar | ( | gboolean | log, |
const gchar * | format, | ||
... | |||
) |
Displays text on the statusbar.
log | Whether the message should be recorded in the Status window. |
format | A printf -style string. |
Definition at line 168 of file ui_utils.c.
References format, msgwin_status_add(), prefs, set_statusbar(), and GeanyPrefs::suppress_status_messages.
Referenced by auto_save(), backupcopy_create_dir_parts(), backupcopy_document_save_cb(), build_replace_placeholder(), build_run_cmd(), build_spawn_cmd(), check_single_selection(), compile_regex(), configuration_open_files(), document_apply_indent_settings(), document_find_text(), document_open_file_full(), document_save_file(), document_search_bar_find(), editor_set_indent(), get_mtime(), goto_compiler_file_line(), insert_date(), insert_multiline_comment(), instantsave_document_new_cb(), kill_process(), load_text_file(), main_lib(), main_reload_configuration(), msgwin_goto_messages_file_line(), on_build_next_error(), on_build_previous_error(), on_color_scheme_changed(), on_comments_function_activate(), on_context_action1_activate(), on_editor_notify(), on_find_dialog_response(), on_find_in_files_dialog_response(), on_menu_open_selected_file1_activate(), on_new_with_file_template(), on_next_message1_activate(), on_previous_message1_activate(), on_save_all1_activate(), open_cl_files(), open_external(), prepare_run_cmd(), project_close(), project_load_file(), read_file(), replace_in_session(), run_new_dialog(), search_find_in_files(), search_find_usage(), search_finished(), search_get_argv(), show_build_result_message(), show_project_properties(), show_replace_summary(), symbols_goto_tag(), symbols_show_load_tags_dialog(), tools_execute_custom_command(), ui_set_editor_font(), and write_data().
void ui_set_window_title | ( | GeanyDocument * | doc | ) |
Definition at line 366 of file ui_utils.c.
References _, app, GeanyDocument::changed, cl_options, DOC_FILENAME, document_get_basename_for_display(), document_get_current(), GeanyDocument::file_name, GeanyDocument::is_valid, main_widgets, GeanyProject::name, NULL, GeanyApp::project, and GeanyMainWidgets::window.
Referenced by document_new_file(), document_set_text_changed(), on_notebook1_switch_page_after(), on_save_all1_activate(), remove_page(), and update_ui().
void ui_setup_open_button_callback | ( | GtkWidget * | open_btn, |
const gchar * | title, | ||
GtkFileChooserAction | action, | ||
GtkEntry * | entry | ||
) |
Definition at line 1950 of file ui_utils.c.
References entry, path_entry, and ui_path_box_open_clicked().
Referenced by prefs_show_dialog(), project_setup_prefs(), and ui_path_box_new().
void ui_sidebar_show_hide | ( | void | ) |
Definition at line 1000 of file ui_utils.c.
References ignore_callback, interface_prefs, main_widgets, GeanyMainWidgets::sidebar_notebook, GeanyInterfacePrefs::sidebar_openfiles_visible, GeanyInterfacePrefs::sidebar_symbol_visible, ui_lookup_widget(), ui_prefs, ui_widget_show_hide(), and GeanyMainWidgets::window.
Referenced by main_lib(), on_hide_sidebar(), on_list_document_activate(), on_list_symbol_activate(), on_menu_show_sidebar1_toggled(), and on_prefs_dialog_response().
void ui_statusbar_showhide | ( | gboolean | state | ) |
Definition at line 2046 of file ui_utils.c.
References NULL, ui_update_statusbar(), and ui_widgets.
Referenced by on_menu_toggle_all_additional_widgets1_activate(), and on_prefs_dialog_response().
void ui_swap_sidebar_pos | ( | void | ) |
Definition at line 2241 of file ui_utils.c.
References main_widgets, GeanyMainWidgets::notebook, ui_lookup_widget(), and GeanyMainWidgets::window.
Referenced by apply_settings(), and on_prefs_dialog_response().
void ui_table_add_row | ( | GtkTable * | table, |
gint | row, | ||
... | |||
) |
Packs all GtkWidgets
passed after the row argument into a table, using one widget per cell.
The first widget is not expanded as the table grows, as this is usually a label.
table | |
row | The row number of the table. |
Definition at line 2066 of file ui_utils.c.
References NULL.
Referenced by project_new().
void ui_toggle_editor_features | ( | GeanyUIEditorFeatures | feature | ) |
Definition at line 1423 of file ui_utils.c.
References documents, GeanyDocument::editor, editor_prefs, editor_set_indentation_guides(), foreach_document, GeanyEditor::sci, sci_set_line_numbers(), sci_set_symbol_margin(), sci_set_visible_eols(), sci_set_visible_white_spaces(), GeanyEditorPrefs::show_line_endings, GeanyEditorPrefs::show_linenumber_margin, GeanyEditorPrefs::show_markers_margin, and GeanyEditorPrefs::show_white_space.
Referenced by on_markers_margin1_toggled(), on_menu_show_indentation_guides1_toggled(), on_menu_show_line_endings1_toggled(), on_menu_show_white_space1_toggled(), and on_show_line_numbers1_toggled().
gboolean ui_tree_model_iter_any_next | ( | GtkTreeModel * | model, |
GtkTreeIter * | iter, | ||
gboolean | down | ||
) |
Definition at line 3130 of file ui_utils.c.
Referenced by encodings_encoding_store_get_iter(), filetype_combo_box_set_active_filetype(), tree_store_remove_row(), and update_tree_tags().
gboolean ui_tree_view_find_next | ( | GtkTreeView * | treeview, |
TVMatchCallback | cb | ||
) |
Definition at line 1812 of file ui_utils.c.
References tree_view_find().
Referenced by on_build_next_error(), and on_next_message1_activate().
gboolean ui_tree_view_find_previous | ( | GtkTreeView * | treeview, |
TVMatchCallback | cb | ||
) |
Definition at line 1819 of file ui_utils.c.
References tree_view_find().
Referenced by on_build_previous_error(), and on_previous_message1_activate().
|
static |
Definition at line 1826 of file ui_utils.c.
Referenced by ui_tree_view_set_tooltip_text_column().
void ui_tree_view_set_tooltip_text_column | ( | GtkTreeView * | tree_view, |
gint | column | ||
) |
Adds text tooltips to a tree view.
This is similar to gtk_tree_view_set_tooltip_column() but considers the column contents to be text, not markup – it uses gtk_tooltip_set_text() rather than gtk_tooltip_set_markup() to set the tooltip's value.
tree_view | The tree view |
column | The column to get the tooltip from |
Definition at line 1876 of file ui_utils.c.
References ui_tree_view_query_tooltip_cb().
Referenced by cc_show_dialog_custom_commands(), prepare_file_view(), prepare_openfiles(), and prepare_taglist().
void ui_update_fold_items | ( | void | ) |
Definition at line 562 of file ui_utils.c.
References editor_prefs, GeanyEditorPrefs::folding, main_widgets, ui_lookup_widget(), ui_widget_show_hide(), and GeanyMainWidgets::window.
Referenced by apply_settings(), and on_prefs_dialog_response().
void ui_update_insert_include_item | ( | GeanyDocument * | doc, |
gint | item | ||
) |
Definition at line 547 of file ui_utils.c.
References GeanyDocument::file_type, GEANY_FILETYPES_C, GEANY_FILETYPES_CPP, GeanyFiletype::id, GeanyDocument::is_valid, NULL, ui_widget_set_sensitive(), and widgets.
Referenced by on_edit1_select(), and on_editor_button_press_event().
void ui_update_menu_copy_items | ( | GeanyDocument * | doc | ) |
Definition at line 523 of file ui_utils.c.
References GeanyDocument::editor, GeanyDocument::is_valid, main_widgets, NULL, GeanyEditor::sci, sci_has_selection(), ui_menu_copy_items_set_sensitive(), and GeanyMainWidgets::window.
Referenced by on_edit1_select().
void ui_update_popup_copy_items | ( | GeanyDocument * | doc | ) |
Definition at line 486 of file ui_utils.c.
References GeanyDocument::editor, GeanyDocument::is_valid, NULL, GeanyEditor::sci, sci_has_selection(), ui_widget_set_sensitive(), and widgets.
Referenced by load_startup_files(), and on_editor_button_press_event().
void ui_update_popup_goto_items | ( | gboolean | enable | ) |
Definition at line 504 of file ui_utils.c.
References ui_widget_set_sensitive(), and widgets.
Referenced by on_editor_button_press_event().
void ui_update_popup_reundo_items | ( | GeanyDocument * | doc | ) |
Definition at line 453 of file ui_utils.c.
References document_can_redo(), document_can_undo(), GeanyDocument::is_valid, NULL, ui_widget_set_sensitive(), and widgets.
Referenced by document_redo(), document_redo_add(), document_undo(), document_undo_add_internal(), load_startup_files(), on_notebook1_switch_page_after(), on_update_ui(), remove_page(), and toolbar_reload().
void ui_update_recent_project_menu | ( | void | ) |
Definition at line 1296 of file ui_utils.c.
References app, GeanyProject::file_name, filename, GeanyRecentFiles::menubar, GeanyApp::project, and recent_get_recent_projects().
Referenced by recent_file_loaded(), update_recent_menu(), and update_ui().
void ui_update_statusbar | ( | GeanyDocument * | doc, |
gint | pos | ||
) |
Definition at line 324 of file ui_utils.c.
References create_statusbar_statistics(), document_get_current(), GeanyDocument::editor, interface_prefs, GeanyDocument::is_valid, line, NULL, pos, GeanyEditor::sci, sci_get_col_from_position(), sci_get_current_position(), sci_get_cursor_virtual_space(), sci_get_length(), sci_get_line_from_position(), set_statusbar(), and GeanyInterfacePrefs::statusbar_visible.
Referenced by cb_func_switch_action(), convert_eol(), document_redo(), document_reload_prompt(), document_save_file(), document_set_encoding(), document_set_text_changed(), document_undo(), editor_check_colourise(), on_detect_type_from_file_activate(), on_menu_write_unicode_bom1_toggled(), on_notebook1_switch_page_after(), on_prefs_dialog_response(), on_reset_indentation1_activate(), on_set_file_readonly1_toggled(), on_update_ui(), set_indent_type(), and ui_statusbar_showhide().
void ui_update_tab_status | ( | GeanyDocument * | doc | ) |
Definition at line 1745 of file ui_utils.c.
References document_get_status_widget_class(), GeanyDocument::priv, sidebar_openfiles_update(), and GeanyDocumentPrivate::tab_label.
Referenced by document_check_disk_status(), document_set_text_changed(), on_set_file_readonly1_toggled(), protect_document(), and unprotect_document().
void ui_update_view_editor_menu_items | ( | void | ) |
Definition at line 1453 of file ui_utils.c.
References editor_prefs, ignore_callback, main_widgets, GeanyEditorPrefs::show_indent_guide, GeanyEditorPrefs::show_line_endings, GeanyEditorPrefs::show_linenumber_margin, GeanyEditorPrefs::show_markers_margin, GeanyEditorPrefs::show_white_space, ui_lookup_widget(), and GeanyMainWidgets::window.
Referenced by apply_settings(), and on_prefs_dialog_response().
void ui_widget_modify_font_from_string | ( | GtkWidget * | widget, |
const gchar * | str | ||
) |
Modifies the font of a widget using gtk_widget_modify_font().
widget | The widget. |
str | The font name as expected by pango_font_description_from_string(). |
Definition at line 1894 of file ui_utils.c.
Referenced by msgwin_init(), on_prefs_font_choosed(), prepare_compiler_tree_view(), prepare_file_view(), prepare_msg_tree_view(), prepare_openfiles(), prepare_status_tree_view(), and prepare_taglist().
void ui_widget_set_sensitive | ( | GtkWidget * | widget, |
gboolean | set | ||
) |
Definition at line 125 of file ui_utils.c.
Referenced by ui_add_document_sensitive(), ui_document_buttons_update(), ui_document_show_hide(), ui_menu_copy_items_set_sensitive(), ui_save_buttons_toggle(), ui_update_insert_include_item(), ui_update_popup_copy_items(), ui_update_popup_goto_items(), and ui_update_popup_reundo_items().
void ui_widget_set_tooltip_text | ( | GtkWidget * | widget, |
const gchar * | text | ||
) |
Sets text as the contents of the tooltip for widget.
widget | The widget the tooltip should be set for. |
text | The text for the tooltip. |
Definition at line 2724 of file ui_utils.c.
References text.
void ui_widget_show_hide | ( | GtkWidget * | widget, |
gboolean | show | ||
) |
Definition at line 987 of file ui_utils.c.
Referenced by auto_separator_update(), msgwin_show_hide(), msgwin_show_hide_tabs(), on_file1_activate(), on_show_toolbar1_toggled(), on_tools_menu_show(), prefs_init_dialog(), toolbar_show_hide(), ui_sidebar_show_hide(), and ui_update_fold_items().
|
static |
Definition at line 1385 of file ui_utils.c.
References add_recent_file_menu_item(), file_prefs, filename, GeanyRecentFiles::menubar, GeanyFilePrefs::mru_length, NULL, RECENT_FILE_PROJECT, GeanyRecentFiles::recent_queue, GeanyRecentFiles::toolbar, GeanyRecentFiles::type, and ui_update_recent_project_menu().
Referenced by add_recent_file().
|
static |
Definition at line 77 of file ui_utils.c.
Referenced by callbacks_connect(), plugin_builder_connect_signals(), ui_builder_get_object(), ui_finalize_builder(), and ui_init_builder().
GtkWidget* config_files_menu |
Definition at line 96 of file ui_utils.c.
GPtrArray* document_buttons |
Definition at line 88 of file ui_utils.c.
|
static |
Definition at line 80 of file ui_utils.c.
Referenced by create_edit_menu1(), ui_finalize_builder(), and ui_init_builder().
GeanyInterfacePrefs interface_prefs |
Definition at line 71 of file ui_utils.c.
Referenced by apply_settings(), begin_print(), dialogs_show_open_file(), dialogs_show_open_font(), dialogs_show_save_as(), do_main_quit(), document_load_config(), editor_create_widget(), geany_data_init(), init_pref_groups(), invert(), load_dialog_prefs(), main_lib(), msgwin_compiler_add_string(), msgwin_init(), msgwin_show_hide_tabs(), notebook_tab_click(), on_list_document_activate(), on_list_symbol_activate(), on_menu_show_sidebar1_toggled(), on_menu_toggle_all_additional_widgets1_activate(), on_prefs_dialog_response(), on_prefs_font_choosed(), on_sidebar_display_open_files_show(), on_sidebar_display_symbol_list_show(), prefs_init_dialog(), prepare_compiler_tree_view(), prepare_msg_tree_view(), prepare_openfiles(), prepare_status_tree_view(), prepare_taglist(), project_open(), save_dialog_prefs(), save_ui_prefs(), set_statusbar(), sidebar_focus_openfiles_tab(), sidebar_focus_symbols_tab(), sidebar_tabs_show_hide(), tools_color_chooser(), ui_init_prefs(), ui_progress_bar_start(), ui_set_editor_font(), ui_sidebar_show_hide(), and ui_update_statusbar().
GeanyMainWidgets main_widgets |
Definition at line 72 of file ui_utils.c.
Referenced by add_kb(), apply_settings(), begin_print(), build_keybinding(), cb_func_clipboard_action(), cb_func_editor_action(), cb_func_format_action(), cb_func_goto_action(), cb_func_insert_action(), cb_func_menu_fullscreen(), cb_func_menu_messagewindow(), cb_func_move_tab(), cb_func_select_action(), cc_show_dialog_custom_commands(), check_fixed_kb(), check_menu_key(), check_snippet_completion(), configuration_apply_settings(), configuration_open_files(), configuration_save_session_files(), configure_plugins(), create_build_menu(), create_config_dir(), create_config_files_menu(), create_dialog(), create_fif_dialog(), create_file_template_menu(), create_find_dialog(), create_open_file_dialog(), create_replace_dialog(), create_save_file_dialog(), create_set_filetype_menu(), create_switch_dialog(), dialogs_show_input_numeric(), dialogs_show_msgbox(), dialogs_show_msgbox_with_secondary(), dialogs_show_open_file(), dialogs_show_open_font(), dialogs_show_question(), dialogs_show_save_as(), do_main_quit(), document_account_for_unsaved(), document_create(), document_get_current(), document_get_from_page(), document_get_notebook_page(), document_new_file_if_non_open(), document_open_file_full(), document_set_encoding(), document_show_tab(), document_try_focus(), draw_page(), editor_snippets_free(), editor_snippets_init(), encodings_init(), end_print(), focus_sidebar(), geany_data_init(), has_tabs_on_right(), have_session_docs(), highlighting_show_color_scheme_dialog(), init_recent_files(), insert_date(), keybindings_init(), load_startup_files(), load_ui_prefs(), log_show_debug_messages_dialog(), main_init(), main_lib(), msgwin_init(), msgwin_show_hide(), notebook_init(), notebook_new_tab(), notebook_remove_page(), on_build_menu_item(), on_close_documents_right_activate(), on_copy1_activate(), on_cut1_activate(), on_delete1_activate(), on_document_close(), on_edit1_select(), on_editor_button_press_event(), on_editor_menu_hide(), on_editor_menu_show(), on_go_to_line_activate(), on_hide_toolbar1_activate(), on_list_document_activate(), on_list_symbol_activate(), on_load_settings(), on_menu_project1_activate(), on_menu_select_all1_activate(), on_menu_show_sidebar1_toggled(), on_menu_toggle_all_additional_widgets1_activate(), on_paste1_activate(), on_pref_btn_clicked(), on_prefs_dialog_response(), on_reload_all(), on_save_all1_activate(), on_save_settings(), on_search1_activate(), on_show_toolbar1_toggled(), paginate(), plugin_add_toolbar_item(), plugin_show_configure(), plugins_load_active(), pm_show_dialog(), prefs_show_dialog(), prepare_openfiles(), printing_page_setup_gtk(), printing_print_gtk(), progress_bar_pulse(), project_new(), project_open(), remove_page(), replace_in_session(), run_file_chooser(), run_unsaved_dialog(), save_ui_prefs(), setup_tab_dnd(), setup_window_position(), show_build_commands_dialog(), show_prompt(), sidebar_focus_openfiles_tab(), sidebar_focus_symbols_tab(), sidebar_init(), sidebar_update_tag_list(), switch_notebook_page(), symbols_show_load_tags_dialog(), tab_count_changed(), tb_editor_create_dialog(), toolbar_get_insert_position(), toolbar_notify_style_cb(), toolbar_reload(), toolbar_set_icon_size(), toolbar_set_icon_style(), toolbar_show_hide(), toolbar_update_ui(), tools_color_chooser(), tools_create_insert_custom_command_menu_items(), tools_word_count(), ui_add_document_sensitive(), ui_create_insert_date_menu_items(), ui_create_insert_menu_items(), ui_document_buttons_update(), ui_document_show_hide(), ui_init(), ui_menu_add_document_items_sorted(), ui_progress_bar_start(), ui_progress_bar_stop(), ui_save_buttons_toggle(), ui_set_fullscreen(), ui_set_window_title(), ui_sidebar_show_hide(), ui_swap_sidebar_pos(), ui_update_fold_items(), ui_update_menu_copy_items(), ui_update_view_editor_menu_items(), and utils_open_browser().
GtkWidget* menu_copy_items[3] |
Definition at line 92 of file ui_utils.c.
GtkWidget* menu_insert_include_items[2] |
Definition at line 89 of file ui_utils.c.
GtkWidget* popup_copy_items[3] |
Definition at line 91 of file ui_utils.c.
GtkWidget* popup_goto_items[4] |
Definition at line 90 of file ui_utils.c.
|
static |
Definition at line 81 of file ui_utils.c.
Referenced by create_prefs_dialog(), ui_finalize_builder(), and ui_init_builder().
|
static |
Definition at line 2780 of file ui_utils.c.
Referenced by ui_progress_bar_start(), and ui_progress_bar_stop().
|
static |
Definition at line 82 of file ui_utils.c.
Referenced by create_project_dialog(), ui_finalize_builder(), and ui_init_builder().
GtkWidget* redo_items[3] |
Definition at line 93 of file ui_utils.c.
GtkWidget* save_buttons[4] |
Definition at line 95 of file ui_utils.c.
|
static |
Definition at line 79 of file ui_utils.c.
Referenced by create_toolbar_popup_menu1(), ui_finalize_builder(), and ui_init_builder().
UIPrefs ui_prefs |
Definition at line 74 of file ui_utils.c.
Referenced by apply_settings(), cb_func_file_action(), cb_func_format_action(), cc_dialog_add_command(), cc_on_custom_command_activate(), cc_show_dialog_custom_commands(), configuration_apply_settings(), configuration_load_session_files(), configuration_save(), create_statusbar_statistics(), do_main_quit(), document_remove_page(), focus_msgwindow(), focus_sidebar(), init_pref_groups(), insert_date(), load_settings(), load_ui_prefs(), main_init(), main_lib(), msgwin_compiler_add_string(), msgwin_msg_add_string(), msgwin_show_hide(), on_color_selection_change_palette_with_screen(), on_file1_activate(), on_fullscreen1_toggled(), on_hide_sidebar(), on_menu_project1_activate(), on_menu_show_sidebar1_toggled(), on_prefs_dialog_response(), on_save1_activate(), on_show_messages_window1_toggled(), on_window_state_event(), prefs_init_dialog(), recent_get_recent_files(), recent_get_recent_projects(), save_ui_prefs(), setup_window_position(), show_build_result_message(), sidebar_focus_openfiles_tab(), sidebar_focus_symbols_tab(), sidebar_init(), tools_create_insert_custom_command_menu_items(), tree_view_find(), ui_init_prefs(), ui_save_buttons_toggle(), ui_set_fullscreen(), and ui_sidebar_show_hide().
UIWidgets ui_widgets |
Definition at line 75 of file ui_utils.c.
Referenced by apply_settings(), create_config_files_menu(), create_set_filetype_menu(), dialogs_show_open_font(), do_main_quit(), init_recent_files(), kb_change_iter_shortcut(), kb_init_tree(), kb_tree_view_change_button_clicked_cb(), key_dialog_show_prefs(), main_init(), main_lib(), on_button_customize_toolbar_clicked(), on_color_dialog_response(), on_enable_plugins_toggled(), on_file1_activate(), on_font_dialog_response(), on_menu_project1_activate(), on_open_encoding_toggled(), on_prefs_dialog_response(), on_prefs_print_page_header_toggled(), on_prefs_print_radio_button_toggled(), on_show_notebook_tabs_toggled(), on_show_symbol_list_toggled(), on_sidebar_visible_toggled(), on_toolbar_show_toggled(), on_use_folding_toggled(), open_preferences_help(), prefs_action(), prefs_init_dialog(), prefs_show_dialog(), progress_bar_create(), project_apply_prefs(), project_setup_prefs(), recent_get_recent_files(), recent_get_recent_projects(), set_statusbar(), show_notebook_page(), toolbar_popup_menu(), tools_color_chooser(), ui_init(), ui_path_box_open_clicked(), and ui_statusbar_showhide().
GtkWidget* undo_items[3] |
Definition at line 94 of file ui_utils.c.
struct { ... } widgets |
Referenced by create_config_files_menu(), init_document_widgets(), on_doc_sensitive_widget_destroy(), ui_add_config_file_menu_item(), ui_add_document_sensitive(), ui_document_buttons_update(), ui_init(), ui_init_toolbar_widgets(), ui_menu_copy_items_set_sensitive(), ui_save_buttons_toggle(), ui_update_insert_include_item(), ui_update_popup_copy_items(), ui_update_popup_goto_items(), and ui_update_popup_reundo_items().
|
static |
Definition at line 78 of file ui_utils.c.
Referenced by create_window1(), ui_finalize_builder(), and ui_init_builder().