Add a separate keybinding signal for activating links
Keeping the keybinding signal and the regular signal separate is cleaner and allows us to pass the uri as a parameter to the activate-link signal.
This commit is contained in:
@ -16,13 +16,10 @@ response_cb (GtkWidget *dialog,
|
||||
}
|
||||
|
||||
static gboolean
|
||||
activate_link (GtkWidget *label,
|
||||
gpointer data)
|
||||
activate_link (GtkWidget *label,
|
||||
const gchar *uri,
|
||||
gpointer data)
|
||||
{
|
||||
const gchar *uri;
|
||||
|
||||
uri = gtk_label_get_current_uri (GTK_LABEL (label));
|
||||
|
||||
if (g_strcmp0 (uri, "keynav") == 0)
|
||||
{
|
||||
GtkWidget *dialog;
|
||||
|
||||
Reference in New Issue
Block a user