Commit 8c4a246c authored by Tristan Matthews's avatar Tristan Matthews
Browse files

* #13673: gnome: fix segfault in hooks-config

parent 4d6a885c
......@@ -196,17 +196,18 @@ GtkWidget* create_hooks_settings()
gtk_entry_set_text(GTK_ENTRY(prefix), _urlhook_config->phone_number_prefix);
gtk_widget_set_sensitive(GTK_WIDGET(prefix), gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(widg)));
gtk_table_attach(GTK_TABLE(table), prefix, 1, 2, 0, 1, GTK_EXPAND | GTK_FILL, GTK_EXPAND | GTK_FILL, 0, 10);
gnome_main_section_new_with_table(_("Messaging"), &frame, &table, 4, 2);
gtk_box_pack_start(GTK_BOX(ret), frame, FALSE, FALSE, 0);
gtk_widget_show(frame);
label = gtk_label_new_with_mnemonic(_("Open URL in"));
url = gtk_entry_new();
gchar *url_command = eel_gconf_get_string(MESSAGING_URL_COMMAND);
if (strlen(url_command))
gtk_entry_set_text(GTK_ENTRY(url),url_command);
else
if (url_command && *url_command) {
gtk_entry_set_text(GTK_ENTRY(url), url_command);
g_free(url_command);
} else
gtk_entry_set_text(GTK_ENTRY(url), "xdg-open");
gtk_label_set_mnemonic_widget(GTK_LABEL(label), url);
gtk_table_attach(GTK_TABLE(table), label, 0, 1, 4, 5, GTK_EXPAND | GTK_FILL, GTK_EXPAND | GTK_FILL, 0, 10);
......
......@@ -243,10 +243,10 @@ eel_gconf_unset(const char *key)
eel_gconf_handle_error(&error);
}
char *
gchar *
eel_gconf_get_string(const char *key)
{
char *result;
gchar *result = NULL;
GConfClient *client;
GError *error = NULL;
......
Supports Markdown
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