diff options
author | Gary Kramlich <grim@reaperworld.com> | 2020-09-15 20:26:57 -0500 |
---|---|---|
committer | Gary Kramlich <grim@reaperworld.com> | 2020-09-15 20:26:57 -0500 |
commit | 83b480a2ec83ff8863f57bed511919373d8066be (patch) | |
tree | 2e805fc25bc98a26134211fddf6facbc7d3e7051 /pidgin/gtkutils.c | |
parent | 4fd6015ee18377a920f31a47022731d97b4853a7 (diff) | |
download | pidgin-83b480a2ec83ff8863f57bed511919373d8066be.tar.gz |
Replace some utility functions with actual widgets
Replace pidgin_create_dialog with PidginDialog
Testing Done:
Compile and basic run with im's sent.
Reviewed at https://reviews.imfreedom.org/r/116/
Diffstat (limited to 'pidgin/gtkutils.c')
-rw-r--r-- | pidgin/gtkutils.c | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/pidgin/gtkutils.c b/pidgin/gtkutils.c index 354995fc37..66ae378418 100644 --- a/pidgin/gtkutils.c +++ b/pidgin/gtkutils.c @@ -127,61 +127,6 @@ static GSList *minidialogs = NULL; /****************************************************************************** * Code *****************************************************************************/ -static -void pidgin_window_init(GtkWindow *wnd, const char *title, guint border_width, const char *role, gboolean resizable) -{ - if (title) - gtk_window_set_title(wnd, title); -#ifdef _WIN32 - else - gtk_window_set_title(wnd, PIDGIN_ALERT_TITLE); -#endif - gtk_container_set_border_width(GTK_CONTAINER(wnd), border_width); - if (role) - gtk_window_set_role(wnd, role); - gtk_window_set_resizable(wnd, resizable); -} - -GtkWidget * -pidgin_create_window(const char *title, guint border_width, const char *role, gboolean resizable) -{ - GtkWindow *wnd = NULL; - - wnd = GTK_WINDOW(gtk_window_new(GTK_WINDOW_TOPLEVEL)); - pidgin_window_init(wnd, title, border_width, role, resizable); - - return GTK_WIDGET(wnd); -} - -GtkWidget * -pidgin_create_small_button(GtkWidget *image) -{ - GtkWidget *button; - - button = gtk_button_new(); - gtk_button_set_relief(GTK_BUTTON(button), GTK_RELIEF_NONE); - - /* don't allow focus on the close button */ - gtk_widget_set_focus_on_click(button, FALSE); - - gtk_widget_show(image); - - gtk_container_add(GTK_CONTAINER(button), image); - - return button; -} - -GtkWidget * -pidgin_create_dialog(const char *title, guint border_width, const char *role, gboolean resizable) -{ - GtkWindow *wnd = NULL; - - wnd = GTK_WINDOW(gtk_dialog_new()); - pidgin_window_init(wnd, title, border_width, role, resizable); - - return GTK_WIDGET(wnd); -} - GtkWidget * pidgin_create_video_widget(void) { |