Commit 718a108f authored by Simon Booth's avatar Simon Booth Committed by Daniel P. Berrange

remove several unused variables. Fix variables initialised twice.

parent 6ffbf839
......@@ -330,8 +330,6 @@ static char *entangle_session_next_file_prefix(EntangleSession *session)
char *prefix;
char *format;
char *filename;
int i;
int max;
int ndigits;
ENTANGLE_DEBUG("NEXT FILENAME '%s'", template);
......@@ -353,9 +351,6 @@ static char *entangle_session_next_file_prefix(EntangleSession *session)
ndigits = postfix - template;
for (max = 1, i = 0 ; i < ndigits ; i++)
max *= 10;
format = g_strdup_printf("%%s%%0%dd%%s", ndigits);
ENTANGLE_DEBUG("Format '%s' prefix='%s' postfix='%s' ndigits=%d nextDigits=%d",
......
......@@ -496,7 +496,6 @@ static void do_setup_control_group_ro(EntangleControlPanel *panel,
int date;
gchar *text;
value = gtk_entry_new();
g_object_get(control, "value", &date, NULL);
text = g_strdup_printf("%d", date);
value = gtk_label_new(text);
......
......@@ -267,8 +267,6 @@ void entangle_image_popup_show(EntangleImagePopup *popup,
EntangleImagePopupPrivate *priv = popup->priv;
GtkWidget *win = GTK_WIDGET(gtk_builder_get_object(priv->builder, "image-popup"));
win = GTK_WIDGET(gtk_builder_get_object(priv->builder, "image-popup"));
gtk_widget_realize(win);
gtk_window_set_transient_for(GTK_WINDOW(win), parent);
......@@ -307,8 +305,6 @@ void entangle_image_popup_show_on_monitor(EntangleImagePopup *popup, gint monito
GtkWidget *win = GTK_WIDGET(gtk_builder_get_object(priv->builder, "image-popup"));
GdkCursor *null_cursor = gdk_cursor_new(GDK_BLANK_CURSOR);
win = GTK_WIDGET(gtk_builder_get_object(priv->builder, "image-popup"));
gtk_widget_realize(win);
gdk_window_set_cursor(gtk_widget_get_window(GTK_WIDGET(win)),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment