[vinagre] Added a full screen command line option. Closes #589104.
- From: Jonh Wendell <jwendell src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [vinagre] Added a full screen command line option. Closes #589104.
- Date: Mon, 10 Aug 2009 15:11:52 +0000 (UTC)
commit 03d771ffd0c5d6d0ae51d5c8ba692308a07b148d
Author: Jonh Wendell <jwendell gnome org>
Date: Mon Aug 10 12:10:02 2009 -0300
Added a full screen command line option. Closes #589104.
vinagre/vinagre-main.c | 12 ++++++++----
1 files changed, 8 insertions(+), 4 deletions(-)
---
diff --git a/vinagre/vinagre-main.c b/vinagre/vinagre-main.c
index 5342511..7f4ff60 100644
--- a/vinagre/vinagre-main.c
+++ b/vinagre/vinagre-main.c
@@ -53,9 +53,13 @@ static gchar **files = NULL;
static gchar **remaining_args = NULL;
static GSList *servers = NULL;
static gboolean new_window = FALSE;
+static gboolean fullscreen = FALSE;
static const GOptionEntry options [] =
{
+ { "fullscreen", 'f', 0, G_OPTION_ARG_NONE, &fullscreen,
+ N_("Open vinagre in fullscreen mode"), NULL },
+
{ "new-window", 'n', 0, G_OPTION_ARG_NONE, &new_window,
N_("Create a new toplevel window in an existing instance of vinagre"), NULL },
@@ -128,7 +132,7 @@ vinagre_main_process_command_line (VinagreWindow *window)
int main (int argc, char **argv) {
GOptionContext *context;
GError *error = NULL;
- GSList *l, *next, *plugins;
+ GSList *l, *plugins;
VinagreWindow *window;
VinagreApp *app;
VinagrePluginsEngine *engine;
@@ -193,11 +197,11 @@ int main (int argc, char **argv) {
vinagre_utils_handle_debug ();
- for (l = servers; l; l = next)
+ for (l = servers; l; l = l->next)
{
VinagreConnection *conn = l->data;
-
- next = l->next;
+
+ vinagre_connection_set_fullscreen (conn, fullscreen);
vinagre_cmd_direct_connect (conn, window);
g_object_unref (conn);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]