X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;ds=sidebyside;f=shell%2Fev-page-action.c;h=73152b4e2240576a9fd85a34e48f0432a5e5a84e;hb=e9d82256c890d24d9465a2721f622083bab9de7b;hp=99f1d6abe26673ab099ee94e7afa4331aad12e17;hpb=a50ca0528a09e8e001c4600371048774e4029057;p=evince.git diff --git a/shell/ev-page-action.c b/shell/ev-page-action.c index 99f1d6ab..73152b4e 100644 --- a/shell/ev-page-action.c +++ b/shell/ev-page-action.c @@ -185,7 +185,7 @@ page_changed_cb (EvPageCache *page_cache, gtk_entry_set_width_chars (GTK_ENTRY (proxy->entry), CLAMP (ev_page_cache_get_max_label_chars (page_cache), - 4, 12)); + 6, 12)); page_label = ev_page_cache_get_page_label (page_cache, page); gtk_entry_set_text (GTK_ENTRY (proxy->entry), page_label); @@ -479,7 +479,8 @@ update_model (EvPageAction *page, GParamSpec *pspec, EvPageActionWidget *proxy) (GtkCellLayoutDataFunc) display_completion_text, proxy, NULL); gtk_entry_set_completion (GTK_ENTRY (proxy->entry), completion); - + + g_object_unref (completion); g_object_unref (model); } } @@ -652,7 +653,7 @@ ev_page_action_class_init (EvPageActionClass *class) 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,