[gnome-commander] Drop gnome_cmd_dialog_set_resizable() function



commit f187a150c6332946135363e1560d263773db7fa6
Author: Piotr Eljasiak <epiotr src gnome org>
Date:   Sun May 15 17:46:26 2011 +0200

    Drop gnome_cmd_dialog_set_resizable() function

 libgcmd/gnome-cmd-dialog.h             |    6 ------
 plugins/cvs/interface.cc               |    6 ++++--
 src/dialogs/gnome-cmd-search-dialog.cc |    3 ++-
 3 files changed, 6 insertions(+), 9 deletions(-)
---
diff --git a/libgcmd/gnome-cmd-dialog.h b/libgcmd/gnome-cmd-dialog.h
index debc081..23d9bd9 100644
--- a/libgcmd/gnome-cmd-dialog.h
+++ b/libgcmd/gnome-cmd-dialog.h
@@ -61,12 +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_resizable (GnomeCmdDialog *dialog, gboolean value)
-{
-    gtk_window_set_resizable (GTK_WINDOW (dialog), value);
-    gtk_window_set_policy (GTK_WINDOW (dialog), FALSE, value, !value);
-}
-
 #endif //__GNOME_CMD_DIALOG_H__
 
 
diff --git a/plugins/cvs/interface.cc b/plugins/cvs/interface.cc
index 03fcded..35b5fa5 100644
--- a/plugins/cvs/interface.cc
+++ b/plugins/cvs/interface.cc
@@ -251,7 +251,8 @@ GtkWidget *create_diff_win (CvsPlugin *plugin)
 
     dialog = gnome_cmd_dialog_new (_("CVS Diff"));
     g_object_ref (dialog);
-    gnome_cmd_dialog_set_resizable (GNOME_CMD_DIALOG (dialog), TRUE);
+    gtk_window_set_resizable (GTK_WINDOW (dialog), TRUE);
+    gtk_window_set_policy (GTK_WINDOW (dialog), FALSE, TRUE, FALSE);
     gtk_window_set_default_size (GTK_WINDOW (dialog), 510, 300);
 
     gnome_cmd_dialog_add_button (
@@ -280,7 +281,8 @@ GtkWidget *create_log_win (CvsPlugin *plugin)
 
     dialog = gnome_cmd_dialog_new ("CVS Log");
     g_object_ref (dialog);
-    gnome_cmd_dialog_set_resizable (GNOME_CMD_DIALOG (dialog), TRUE);
+    gtk_window_set_resizable (GTK_WINDOW (dialog), TRUE);
+    gtk_window_set_policy (GTK_WINDOW (dialog), FALSE, TRUE, FALSE);
     gtk_window_set_default_size (GTK_WINDOW (dialog), 510, 300);
     gtk_window_set_policy (GTK_WINDOW (dialog), FALSE, TRUE, FALSE);
 
diff --git a/src/dialogs/gnome-cmd-search-dialog.cc b/src/dialogs/gnome-cmd-search-dialog.cc
index 77b61fa..24b7425 100755
--- a/src/dialogs/gnome-cmd-search-dialog.cc
+++ b/src/dialogs/gnome-cmd-search-dialog.cc
@@ -750,7 +750,8 @@ static void gnome_cmd_search_dialog_init (GnomeCmdSearchDialog *dialog)
     window = GTK_WIDGET (dialog);
     g_object_set_data (G_OBJECT (window), "window", window);
     gtk_window_set_title (GTK_WINDOW (window), _("Search..."));
-    gnome_cmd_dialog_set_resizable (GNOME_CMD_DIALOG (dialog), TRUE);
+    gtk_window_set_resizable (GTK_WINDOW (dialog), TRUE);
+    gtk_window_set_policy (GTK_WINDOW (dialog), FALSE, TRUE, FALSE);
     gtk_window_set_default_size (GTK_WINDOW (window), defaults.width, defaults.height);
 
     vbox = create_vbox (window, FALSE, 0);



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