diff options
author | Elliott Sales de Andrade <quantum.analyst@gmail.com> | 2021-09-27 20:42:30 -0500 |
---|---|---|
committer | Elliott Sales de Andrade <quantum.analyst@gmail.com> | 2021-09-27 20:42:30 -0500 |
commit | 4f9d4eb5b022e9bfefe5e639d1c917864b39ba56 (patch) | |
tree | f7edfcdb6c7133d9ef62764e221aa414a06a8d1f /pidgin/gtkutils.c | |
parent | bcf2892009834030947481bed9dba7ab9251539f (diff) | |
download | pidgin-4f9d4eb5b022e9bfefe5e639d1c917864b39ba56.tar.gz |
Remove pidgin_dialog* helper functions
Since `homogeneous` on boxes is `FALSE` by default, I didn't bother setting it.
Testing Done:
Compile-only, mostly. I did check the Accounts windows, but requests are harder to check.
Reviewed at https://reviews.imfreedom.org/r/949/
Diffstat (limited to 'pidgin/gtkutils.c')
-rw-r--r-- | pidgin/gtkutils.c | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/pidgin/gtkutils.c b/pidgin/gtkutils.c index 1890bf32e9..161424b143 100644 --- a/pidgin/gtkutils.c +++ b/pidgin/gtkutils.c @@ -119,37 +119,6 @@ static guint accels_save_timer = 0; /****************************************************************************** * Code *****************************************************************************/ -GtkWidget * -pidgin_dialog_get_vbox_with_properties(GtkDialog *dialog, gboolean homogeneous, gint spacing) -{ - GtkBox *vbox = GTK_BOX(gtk_dialog_get_content_area(GTK_DIALOG(dialog))); - gtk_box_set_homogeneous(vbox, homogeneous); - gtk_box_set_spacing(vbox, spacing); - return GTK_WIDGET(vbox); -} - -GtkWidget *pidgin_dialog_get_vbox(GtkDialog *dialog) -{ - return gtk_dialog_get_content_area(GTK_DIALOG(dialog)); -} - -GtkWidget *pidgin_dialog_get_action_area(GtkDialog *dialog) -{ - return gtk_dialog_get_action_area(GTK_DIALOG(dialog)); -} - -GtkWidget *pidgin_dialog_add_button(GtkDialog *dialog, const char *label, - GCallback callback, gpointer callbackdata) -{ - GtkWidget *button = gtk_button_new_with_mnemonic(label); - GtkWidget *bbox = pidgin_dialog_get_action_area(dialog); - - gtk_box_pack_start(GTK_BOX(bbox), button, FALSE, FALSE, 0); - if (callback) - g_signal_connect(G_OBJECT(button), "clicked", callback, callbackdata); - gtk_widget_show(button); - return button; -} GtkWidget *pidgin_separator(GtkWidget *menu) { |