g_assert (proxy);
if (page_cache != NULL && page >= 0) {
-
+ gchar *page_label;
+
gtk_entry_set_width_chars (GTK_ENTRY (proxy->entry),
CLAMP (ev_page_cache_get_max_label_chars (page_cache),
4, 12));
- gchar *page_label = ev_page_cache_get_page_label (page_cache, page);
+ page_label = ev_page_cache_get_page_label (page_cache, page);
gtk_entry_set_text (GTK_ENTRY (proxy->entry), page_label);
gtk_editable_set_position (GTK_EDITABLE (proxy->entry), -1);
g_free (page_label);
-1);
}
+ if (link)
+ g_object_unref (link);
+
return FALSE;
}
-1);
g_signal_emit (proxy, widget_signals[WIDGET_ACTIVATE_LINK], 0, link);
+
+ if (link)
+ g_object_unref (link);
+
+ gtk_tree_iter_free (iter);
return TRUE;
}
-1);
g_object_set (renderer, "text", ev_link_get_title (link), NULL);
+
+ if (link)
+ g_object_unref (link);
+
+ gtk_tree_iter_free (iter);
}
static gboolean
-1);
- if (link)
+ if (link) {
text = ev_link_get_title (link);
+ g_object_unref (link);
+ }
+
+ gtk_tree_iter_free (iter);
if (text && key ) {
gchar *normalized_text;
(GtkCellLayoutDataFunc) display_completion_text,
proxy, NULL);
gtk_entry_set_completion (GTK_ENTRY (proxy->entry), completion);
+
+ g_object_unref (completion);
+ g_object_unref (model);
}
}
signals[ACTIVATE_LABEL] = g_signal_new ("activate_label",
G_OBJECT_CLASS_TYPE (object_class),
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
- G_STRUCT_OFFSET (EvPageActionClass, activate_link),
+ G_STRUCT_OFFSET (EvPageActionClass, activate_label),
NULL, NULL,
ev_marshal_BOOLEAN__STRING,
G_TYPE_BOOLEAN, 1,