[gnome-commander] Drop gnome_cmd_dialog_set_modal()



commit b9d85360cad53fea727b4836e2cd013e936e5573
Author: Piotr Eljasiak <epiotr src gnome org>
Date:   Sun May 15 14:15:43 2011 +0200

    Drop gnome_cmd_dialog_set_modal()

 libgcmd/gnome-cmd-dialog.h               |    5 -----
 plugins/cvs/cvs-plugin.cc                |    2 +-
 plugins/fileroller/file-roller-plugin.cc |    2 +-
 src/gnome-cmd-options-dialog.cc          |    8 ++++----
 4 files changed, 6 insertions(+), 11 deletions(-)
---
diff --git a/libgcmd/gnome-cmd-dialog.h b/libgcmd/gnome-cmd-dialog.h
index 3f4d09f..debc081 100644
--- a/libgcmd/gnome-cmd-dialog.h
+++ b/libgcmd/gnome-cmd-dialog.h
@@ -61,11 +61,6 @@ void gnome_cmd_dialog_add_category (GnomeCmdDialog *dialog, GtkWidget *category)
 
 void gnome_cmd_dialog_add_expanding_category (GnomeCmdDialog *dialog, GtkWidget *category);
 
-inline void gnome_cmd_dialog_set_modal (GnomeCmdDialog *dialog)
-{
-    gtk_window_set_modal (GTK_WINDOW (dialog), TRUE);
-}
-
 inline void gnome_cmd_dialog_set_resizable (GnomeCmdDialog *dialog, gboolean value)
 {
     gtk_window_set_resizable (GTK_WINDOW (dialog), value);
diff --git a/plugins/cvs/cvs-plugin.cc b/plugins/cvs/cvs-plugin.cc
index 8dd1507..998bc99 100644
--- a/plugins/cvs/cvs-plugin.cc
+++ b/plugins/cvs/cvs-plugin.cc
@@ -277,7 +277,7 @@ static void configure (GnomeCmdPlugin *p)
     plugin->priv->conf_dialog = dialog;
     g_object_ref (dialog);
     gtk_window_set_transient_for (GTK_WINDOW (dialog), GTK_WINDOW (main_win_widget));
-    gnome_cmd_dialog_set_modal (GNOME_CMD_DIALOG (dialog));
+    gtk_window_set_modal (GTK_WINDOW (dialog), TRUE);
 
     gnome_cmd_dialog_add_button (GNOME_CMD_DIALOG (dialog), GTK_STOCK_OK,
                                  GTK_SIGNAL_FUNC (on_configure_close), plugin);
diff --git a/plugins/fileroller/file-roller-plugin.cc b/plugins/fileroller/file-roller-plugin.cc
index d5b51af..04b303c 100644
--- a/plugins/fileroller/file-roller-plugin.cc
+++ b/plugins/fileroller/file-roller-plugin.cc
@@ -361,7 +361,7 @@ static void configure (GnomeCmdPlugin *plugin)
 
     dialog = gnome_cmd_dialog_new (_("Options"));
     gtk_window_set_transient_for (GTK_WINDOW (dialog), GTK_WINDOW (main_win_widget));
-    gnome_cmd_dialog_set_modal (GNOME_CMD_DIALOG (dialog));
+    gtk_window_set_modal (GTK_WINDOW (dialog), TRUE);
 
     gnome_cmd_dialog_add_button (GNOME_CMD_DIALOG (dialog), GTK_STOCK_OK,
                                  GTK_SIGNAL_FUNC (on_configure_close), plugin);
diff --git a/src/gnome-cmd-options-dialog.cc b/src/gnome-cmd-options-dialog.cc
index 3429166..d02ae63 100644
--- a/src/gnome-cmd-options-dialog.cc
+++ b/src/gnome-cmd-options-dialog.cc
@@ -401,7 +401,7 @@ static void on_colors_edit (GtkButton *btn, GtkWidget *parent)
     GtkWidget *dlg = gnome_cmd_dialog_new (_("Edit Colors..."));
     g_object_ref (dlg);
 
-    gnome_cmd_dialog_set_modal (GNOME_CMD_DIALOG (dlg));
+    gtk_window_set_modal (GTK_WINDOW (dlg), TRUE);
     gtk_window_set_transient_for (GTK_WINDOW (dlg), GTK_WINDOW (parent));
 
     GtkWidget *cat, *cat_box;
@@ -536,7 +536,7 @@ static void on_ls_colors_edit (GtkButton *btn, GtkWidget *parent)
     GtkWidget *dlg = gnome_cmd_dialog_new (_("Edit LS_COLORS Palette"));
     g_object_ref (dlg);
 
-    gnome_cmd_dialog_set_modal (GNOME_CMD_DIALOG (dlg));
+    gtk_window_set_modal (GTK_WINDOW (dlg), TRUE);
     gtk_window_set_transient_for (GTK_WINDOW (dlg), GTK_WINDOW (parent));
 
     GtkWidget *cat, *cat_box;
@@ -1359,7 +1359,7 @@ static GtkWidget *create_app_dialog (GnomeCmdApp *app, GtkSignalFunc on_ok, GtkS
     g_object_ref (dialog);
     g_object_set_data (G_OBJECT (dialog), "options_dialog", options_dialog);
 
-    gnome_cmd_dialog_set_modal (GNOME_CMD_DIALOG (dialog));
+    gtk_window_set_modal (GTK_WINDOW (dialog), TRUE);
     gtk_window_set_transient_for (GTK_WINDOW (dialog), GTK_WINDOW (options_dialog));
 
     hbox = create_hbox (dialog, FALSE, 6);
@@ -1764,7 +1764,7 @@ static GtkWidget *create_device_dialog (GnomeCmdConDevice *dev, GtkSignalFunc on
     gtk_window_set_title (GTK_WINDOW (dialog), "");
     g_object_set_data (G_OBJECT (dialog), "options_dialog", options_dialog);
 
-    gnome_cmd_dialog_set_modal (GNOME_CMD_DIALOG (dialog));
+    gtk_window_set_modal (GTK_WINDOW (dialog), TRUE);
     gtk_window_set_transient_for (GTK_WINDOW (dialog), GTK_WINDOW (options_dialog));
 
     table = create_table (dialog, 4, 2);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]