Skip to content

Commit

Permalink
Use exo's wrapper for gtk_dialog_get_action_area
Browse files Browse the repository at this point in the history
This wrapper dispels deprecation warnings
  • Loading branch information
Andre Miranda committed Jun 2, 2018
1 parent 9903923 commit a80821b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions thunar/thunar-column-editor.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
#include <config.h>
#endif

#include <exo/exo.h>

#include <libxfce4ui/libxfce4ui.h>

#include <thunar/thunar-abstract-dialog.h>
Expand Down Expand Up @@ -123,8 +125,8 @@ thunar_column_editor_init (ThunarColumnEditor *column_editor)
/* add the "Help" button */
button = gtk_button_new_with_mnemonic (_("_Help"));
g_signal_connect (G_OBJECT (button), "clicked", G_CALLBACK (thunar_column_editor_help_clicked), column_editor);
gtk_box_pack_start (GTK_BOX (gtk_dialog_get_action_area (GTK_DIALOG (column_editor))), button, FALSE, FALSE, 0);
gtk_button_box_set_child_secondary (GTK_BUTTON_BOX (gtk_dialog_get_action_area (GTK_DIALOG (column_editor))), button, TRUE);
gtk_box_pack_start (GTK_BOX (exo_gtk_dialog_get_action_area (GTK_DIALOG (column_editor))), button, FALSE, FALSE, 0);
gtk_button_box_set_child_secondary (GTK_BUTTON_BOX (exo_gtk_dialog_get_action_area (GTK_DIALOG (column_editor))), button, TRUE);
gtk_widget_show (button);

vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
Expand Down

0 comments on commit a80821b

Please sign in to comment.