return FALSE;
}
-static gboolean
+static void
proxy_entry_activate_cb (GtkEntry* entry,
GObject* object)
{
const gchar* text = gtk_entry_get_text (entry);
const gchar* property = g_object_get_data (G_OBJECT (entry), "property");
g_object_set (object, property, text, NULL);
- return FALSE;
}
static gboolean
return FALSE;
}
-static gchar*
+static void
proxy_combo_box_changed_cb (GtkComboBox* button, GObject* object)
{
gint value = gtk_combo_box_get_active (button);
const gchar* property = g_object_get_data (G_OBJECT (button), "property");
g_object_set (object, property, value, NULL);
- return FALSE;
}
/**
g_signal_connect (preferences, "response",
G_CALLBACK (midori_preferences_response_cb), NULL);
- /* TODO: Do we want tooltips for explainations or can we omit that? */
+ /* TODO: Do we want tooltips for explanations or can we omit that? */
g_free (dialog_title);
}
if (G_UNLIKELY (desktop == SOKOKE_DESKTOP_UNTESTED))
{
/* Are we running in Xfce? */
- gint result; gchar* out; gchar* err;
- gboolean success = g_spawn_command_line_sync (
- "xprop -root _DT_SAVE_MODE | grep -q xfce4",
- &out, &err, &result, NULL);
- if (success && !result)
+ gint result;
+ gchar *out = NULL;
+ gboolean success = g_spawn_command_line_sync ("xprop -root _DT_SAVE_MODE",
+ &out, NULL, &result, NULL);
+ if (success && ! result && out != NULL && strstr(out, "xfce4") != NULL)
desktop = SOKOKE_DESKTOP_XFCE;
else
desktop = SOKOKE_DESKTOP_UNKNOWN;
+ g_free(out);
}
return desktop;
gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0);
gtk_container_add (GTK_CONTAINER (xfce_heading), hbox);
g_free (markup);
+ gtk_widget_destroy(entry);
return xfce_heading;
}
return NULL;