[gnome-commander] Drop gnome_cmd_dialog_set_transient_for() function
- From: Piotr Eljasiak <epiotr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander] Drop gnome_cmd_dialog_set_transient_for() function
- Date: Sun, 15 May 2011 12:02:06 +0000 (UTC)
commit f4747e2bb75bf24f4df62e36bd7335b6e1e05582
Author: Piotr Eljasiak <epiotr src gnome org>
Date: Sun May 15 13:59:03 2011 +0200
Drop gnome_cmd_dialog_set_transient_for() function
libgcmd/gnome-cmd-dialog.cc | 2 +-
libgcmd/gnome-cmd-dialog.h | 5 -----
plugins/cvs/cvs-plugin.cc | 2 +-
plugins/fileroller/file-roller-plugin.cc | 2 +-
src/gnome-cmd-dir.cc | 2 +-
src/gnome-cmd-file-list.cc | 2 +-
src/gnome-cmd-options-dialog.cc | 8 ++++----
src/gnome-cmd-remote-dialog.cc | 2 +-
src/plugin_manager.cc | 2 +-
9 files changed, 11 insertions(+), 16 deletions(-)
---
diff --git a/libgcmd/gnome-cmd-dialog.cc b/libgcmd/gnome-cmd-dialog.cc
index ba22966..e48b283 100644
--- a/libgcmd/gnome-cmd-dialog.cc
+++ b/libgcmd/gnome-cmd-dialog.cc
@@ -95,7 +95,7 @@ static void init (GnomeCmdDialog *dialog)
gtk_window_set_policy (GTK_WINDOW (dialog), FALSE, FALSE, TRUE);
gtk_window_set_position (GTK_WINDOW (dialog), GTK_WIN_POS_CENTER);
gtk_window_set_title (GTK_WINDOW (dialog), " ");
- gnome_cmd_dialog_set_transient_for (GNOME_CMD_DIALOG (dialog), GTK_WINDOW (main_win_widget));
+ gtk_window_set_transient_for (GTK_WINDOW (dialog), GTK_WINDOW (main_win_widget));
gtk_window_set_type_hint (GTK_WINDOW (dialog), GDK_WINDOW_TYPE_HINT_DIALOG);
vbox = create_vbox (GTK_WIDGET (dialog), FALSE, 0);
diff --git a/libgcmd/gnome-cmd-dialog.h b/libgcmd/gnome-cmd-dialog.h
index 3f54754..15fd83c 100644
--- a/libgcmd/gnome-cmd-dialog.h
+++ b/libgcmd/gnome-cmd-dialog.h
@@ -63,11 +63,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_transient_for (GnomeCmdDialog *dialog, GtkWindow *win)
-{
- gtk_window_set_transient_for (GTK_WINDOW (dialog), GTK_WINDOW (win));
-}
-
inline void gnome_cmd_dialog_set_modal (GnomeCmdDialog *dialog)
{
gtk_window_set_modal (GTK_WINDOW (dialog), TRUE);
diff --git a/plugins/cvs/cvs-plugin.cc b/plugins/cvs/cvs-plugin.cc
index 443617d..8dd1507 100644
--- a/plugins/cvs/cvs-plugin.cc
+++ b/plugins/cvs/cvs-plugin.cc
@@ -276,7 +276,7 @@ static void configure (GnomeCmdPlugin *p)
dialog = gnome_cmd_dialog_new (_("Options"));
plugin->priv->conf_dialog = dialog;
g_object_ref (dialog);
- gnome_cmd_dialog_set_transient_for (GNOME_CMD_DIALOG (dialog), GTK_WINDOW (main_win_widget));
+ gtk_window_set_transient_for (GTK_WINDOW (dialog), GTK_WINDOW (main_win_widget));
gnome_cmd_dialog_set_modal (GNOME_CMD_DIALOG (dialog));
gnome_cmd_dialog_add_button (GNOME_CMD_DIALOG (dialog), GTK_STOCK_OK,
diff --git a/plugins/fileroller/file-roller-plugin.cc b/plugins/fileroller/file-roller-plugin.cc
index e9d2f61..d5b51af 100644
--- a/plugins/fileroller/file-roller-plugin.cc
+++ b/plugins/fileroller/file-roller-plugin.cc
@@ -360,7 +360,7 @@ static void configure (GnomeCmdPlugin *plugin)
GtkWidget *dialog, *table, *cat, *label, *combo, *vbox;
dialog = gnome_cmd_dialog_new (_("Options"));
- gnome_cmd_dialog_set_transient_for (GNOME_CMD_DIALOG (dialog), GTK_WINDOW (main_win_widget));
+ gtk_window_set_transient_for (GTK_WINDOW (dialog), GTK_WINDOW (main_win_widget));
gnome_cmd_dialog_set_modal (GNOME_CMD_DIALOG (dialog));
gnome_cmd_dialog_add_button (GNOME_CMD_DIALOG (dialog), GTK_STOCK_OK,
diff --git a/src/gnome-cmd-dir.cc b/src/gnome-cmd-dir.cc
index 5817988..e9a3c7e 100644
--- a/src/gnome-cmd-dir.cc
+++ b/src/gnome-cmd-dir.cc
@@ -514,7 +514,7 @@ static void create_list_progress_dialog (GnomeCmdDir *dir)
gtk_box_pack_start (GTK_BOX (vbox), dir->pbar, FALSE, TRUE, 0);
gnome_cmd_dialog_add_category (GNOME_CMD_DIALOG (dir->dialog), vbox);
- gnome_cmd_dialog_set_transient_for (GNOME_CMD_DIALOG (dir->dialog), *main_win);
+ gtk_window_set_transient_for (GTK_WINDOW (dir->dialog), *main_win);
gtk_widget_show_all (dir->dialog);
}
diff --git a/src/gnome-cmd-file-list.cc b/src/gnome-cmd-file-list.cc
index 74383fd..2b6d6a5 100644
--- a/src/gnome-cmd-file-list.cc
+++ b/src/gnome-cmd-file-list.cc
@@ -1494,7 +1494,7 @@ static void create_con_open_progress_dialog (GnomeCmdFileList *fl)
gnome_cmd_dialog_add_category (GNOME_CMD_DIALOG (fl->priv->con_open_dialog), vbox);
- gnome_cmd_dialog_set_transient_for (GNOME_CMD_DIALOG (fl->priv->con_open_dialog), *main_win);
+ gtk_window_set_transient_for (GTK_WINDOW (fl->priv->con_open_dialog), *main_win);
gtk_widget_show_all (fl->priv->con_open_dialog);
}
diff --git a/src/gnome-cmd-options-dialog.cc b/src/gnome-cmd-options-dialog.cc
index dfb9776..3429166 100644
--- a/src/gnome-cmd-options-dialog.cc
+++ b/src/gnome-cmd-options-dialog.cc
@@ -402,7 +402,7 @@ static void on_colors_edit (GtkButton *btn, GtkWidget *parent)
g_object_ref (dlg);
gnome_cmd_dialog_set_modal (GNOME_CMD_DIALOG (dlg));
- gnome_cmd_dialog_set_transient_for (GNOME_CMD_DIALOG (dlg), GTK_WINDOW (parent));
+ gtk_window_set_transient_for (GTK_WINDOW (dlg), GTK_WINDOW (parent));
GtkWidget *cat, *cat_box;
GtkWidget *table, *label;
@@ -537,7 +537,7 @@ static void on_ls_colors_edit (GtkButton *btn, GtkWidget *parent)
g_object_ref (dlg);
gnome_cmd_dialog_set_modal (GNOME_CMD_DIALOG (dlg));
- gnome_cmd_dialog_set_transient_for (GNOME_CMD_DIALOG (dlg), GTK_WINDOW (parent));
+ gtk_window_set_transient_for (GTK_WINDOW (dlg), GTK_WINDOW (parent));
GtkWidget *cat, *cat_box;
GtkWidget *table, *label;
@@ -1360,7 +1360,7 @@ static GtkWidget *create_app_dialog (GnomeCmdApp *app, GtkSignalFunc on_ok, GtkS
g_object_set_data (G_OBJECT (dialog), "options_dialog", options_dialog);
gnome_cmd_dialog_set_modal (GNOME_CMD_DIALOG (dialog));
- gnome_cmd_dialog_set_transient_for (GNOME_CMD_DIALOG (dialog), GTK_WINDOW (options_dialog));
+ gtk_window_set_transient_for (GTK_WINDOW (dialog), GTK_WINDOW (options_dialog));
hbox = create_hbox (dialog, FALSE, 6);
gnome_cmd_dialog_add_category (GNOME_CMD_DIALOG (dialog), hbox);
@@ -1765,7 +1765,7 @@ static GtkWidget *create_device_dialog (GnomeCmdConDevice *dev, GtkSignalFunc on
g_object_set_data (G_OBJECT (dialog), "options_dialog", options_dialog);
gnome_cmd_dialog_set_modal (GNOME_CMD_DIALOG (dialog));
- gnome_cmd_dialog_set_transient_for (GNOME_CMD_DIALOG (dialog), GTK_WINDOW (options_dialog));
+ gtk_window_set_transient_for (GTK_WINDOW (dialog), GTK_WINDOW (options_dialog));
table = create_table (dialog, 4, 2);
gnome_cmd_dialog_add_category (GNOME_CMD_DIALOG (dialog), table);
diff --git a/src/gnome-cmd-remote-dialog.cc b/src/gnome-cmd-remote-dialog.cc
index 17afa89..ff07e0d 100644
--- a/src/gnome-cmd-remote-dialog.cc
+++ b/src/gnome-cmd-remote-dialog.cc
@@ -436,7 +436,7 @@ static void gnome_cmd_remote_dialog_init (GnomeCmdRemoteDialog *ftp_dialog)
gtk_window_set_position (GTK_WINDOW (dialog), GTK_WIN_POS_CENTER);
gtk_window_set_title (GTK_WINDOW (dialog), _("Remote Connections"));
- gnome_cmd_dialog_set_transient_for (GNOME_CMD_DIALOG (dialog), *main_win);
+ gtk_window_set_transient_for (GTK_WINDOW (dialog), *main_win);
gtk_window_set_resizable (GTK_WINDOW (dialog), TRUE);
cat_box = create_hbox (dialog, FALSE, 12);
diff --git a/src/plugin_manager.cc b/src/plugin_manager.cc
index 5746ab5..1a8ea83 100644
--- a/src/plugin_manager.cc
+++ b/src/plugin_manager.cc
@@ -445,7 +445,7 @@ void plugin_manager_show ()
update_plugin_list (GTK_CLIST (avail_list), dialog);
gnome_cmd_dialog_add_button (GNOME_CMD_DIALOG (dialog), GTK_STOCK_CLOSE, GTK_SIGNAL_FUNC(on_close), dialog);
- gnome_cmd_dialog_set_transient_for (GNOME_CMD_DIALOG (dialog), *main_win);
+ gtk_window_set_transient_for (GTK_WINDOW (dialog), *main_win);
gtk_widget_set_size_request (GTK_WIDGET (dialog), 500, 300);
gtk_window_set_resizable ((GtkWindow *) GTK_WIDGET (dialog), TRUE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]