[vinagre] Fix a few trivial compiler warnings
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vinagre] Fix a few trivial compiler warnings
- Date: Sat, 10 Sep 2011 07:14:10 +0000 (UTC)
commit 96c551a55f7eebf7a1d31d583eaa5c7a68cb3613
Author: David King <amigadave amigadave com>
Date: Sat Sep 10 09:13:19 2011 +0200
Fix a few trivial compiler warnings
plugins/vnc/vinagre-vnc-plugin.c | 1 -
vinagre/vinagre-commands.c | 5 +++--
vinagre/vinagre-connection.c | 2 +-
vinagre/vinagre-reverse-vnc-listener-dialog.c | 1 -
vinagre/vinagre-tab.c | 1 +
5 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/plugins/vnc/vinagre-vnc-plugin.c b/plugins/vnc/vinagre-vnc-plugin.c
index 32e578d..e3b74dd 100644
--- a/plugins/vnc/vinagre-vnc-plugin.c
+++ b/plugins/vnc/vinagre-vnc-plugin.c
@@ -243,7 +243,6 @@ static GtkWidget *
impl_get_connect_widget (VinagreProtocol *plugin, VinagreConnection *conn)
{
GtkWidget *box, *check, *label, *combo, *box2, *ssh_host_entry;
- GtkTable *table;
gchar *str, *ssh_host;
gboolean has_conn = VINAGRE_IS_VNC_CONNECTION (conn), active;
diff --git a/vinagre/vinagre-commands.c b/vinagre/vinagre-commands.c
index 98edba4..fefd40b 100644
--- a/vinagre/vinagre-commands.c
+++ b/vinagre/vinagre-commands.c
@@ -38,6 +38,7 @@
#include "vinagre-prefs.h"
#include "vinagre-cache-prefs.h"
#include "vinagre-plugins-engine.h"
+#include "vinagre-reverse-vnc-listener-dialog.h"
void
vinagre_cmd_direct_connect (VinagreConnection *conn,
@@ -103,7 +104,7 @@ vinagre_cmd_remote_open (GtkAction *action,
gchar *uri;
gchar *error = NULL;
GSList *errors = NULL;
- gint i;
+ gint i = 0;
GHashTable *protocols;
GHashTableIter iter;
VinagreProtocol *protocol;
@@ -206,7 +207,7 @@ void
vinagre_cmd_remote_vnc_listener (GtkAction *action,
VinagreWindow *window)
{
- vinagre_reverse_vnc_listener_dialog_show (window);
+ vinagre_reverse_vnc_listener_dialog_show (GTK_WINDOW (window));
}
void
diff --git a/vinagre/vinagre-connection.c b/vinagre/vinagre-connection.c
index c7f447e..2bb6245 100644
--- a/vinagre/vinagre-connection.c
+++ b/vinagre/vinagre-connection.c
@@ -203,7 +203,7 @@ default_parse_item (VinagreConnection *conn, xmlNode *root)
if (!xmlStrcmp(curr->name, BAD_CAST "host"))
vinagre_connection_set_host (conn, (const gchar *)s_value);
else if (!xmlStrcmp(curr->name, BAD_CAST "name"))
- vinagre_connection_set_name (conn, BAD_CAST s_value);
+ vinagre_connection_set_name (conn, (const gchar *)s_value);
else if (!xmlStrcmp(curr->name, BAD_CAST "username"))
vinagre_connection_set_username (conn, (const gchar *)s_value);
else if (!xmlStrcmp(curr->name, BAD_CAST "port"))
diff --git a/vinagre/vinagre-reverse-vnc-listener-dialog.c b/vinagre/vinagre-reverse-vnc-listener-dialog.c
index a8fd385..2e57011 100644
--- a/vinagre/vinagre-reverse-vnc-listener-dialog.c
+++ b/vinagre/vinagre-reverse-vnc-listener-dialog.c
@@ -207,7 +207,6 @@ vinagre_reverse_vnc_listener_dialog_show (GtkWindow *parent)
{
VncListenDialog *dialog;
GtkBuilder *xml;
- GError *error = NULL;
gboolean always;
xml = vinagre_utils_get_builder ();
diff --git a/vinagre/vinagre-tab.c b/vinagre/vinagre-tab.c
index 3267882..a53543f 100644
--- a/vinagre/vinagre-tab.c
+++ b/vinagre/vinagre-tab.c
@@ -916,6 +916,7 @@ vinagre_tab_take_screenshot (VinagreTab *tab)
gtk_file_chooser_set_current_name (GTK_FILE_CHOOSER (dialog), suggested_filename->str);
g_string_free (suggested_filename, TRUE);
+ /* FIXME: Assumes that the PNG format is always supported by GdkPixbuf. */
formats = get_supported_image_formats ();
for (l = formats; l; l = l->next)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]