[vinagre] Draft of window plugin manager
- From: Jonh Wendell <jwendell src gnome org>
- To: svn-commits-list gnome org
- Subject: [vinagre] Draft of window plugin manager
- Date: Mon, 27 Jul 2009 12:02:41 +0000 (UTC)
commit 1012c166a2b3805b1cd6e9428160c9e03bfdf614
Author: Jorge Pereira <jpereira gnome org>
Date: Wed Jul 8 22:32:54 2009 -0300
Draft of window plugin manager
vinagre/vinagre-commands.c | 21 ++++++++++++++++++---
1 files changed, 18 insertions(+), 3 deletions(-)
---
diff --git a/vinagre/vinagre-commands.c b/vinagre/vinagre-commands.c
index 2bf278f..4965c56 100644
--- a/vinagre/vinagre-commands.c
+++ b/vinagre/vinagre-commands.c
@@ -209,11 +209,26 @@ vinagre_cmd_edit_plugins (GtkAction *action,
VinagreWindow *window)
{
g_return_if_fail (VINAGRE_IS_WINDOW (window));
- GtkWidget *widget;
+ // AQUI:
+ GtkWidget *dialog, *manager;
+
+ dialog = gtk_window_new (GTK_WINDOW_TOPLEVEL);
+
+ gtk_container_set_border_width (GTK_CONTAINER (dialog), 10);
- widget = vinagre_plugin_manager_new ();
+ gtk_window_set_title (GTK_WINDOW(dialog), N_("Plugins Manager"));
- gtk_widget_show_all (widget);
+ gtk_window_set_transient_for (GTK_WINDOW(dialog), GTK_WINDOW(window));
+
+ gtk_window_set_position (GTK_WINDOW (dialog), GTK_WIN_POS_CENTER_ALWAYS);
+
+ manager = vinagre_plugin_manager_new ();
+
+ gtk_container_add (GTK_CONTAINER (dialog), manager);
+
+ gtk_window_set_modal (GTK_WINDOW(dialog), TRUE);
+
+ gtk_widget_show_all (dialog);
}
/* View Menu */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]