Commit 57465c97 authored by Enrico Lumetti's avatar Enrico Lumetti

Rename single_ink_path_check to single_ink_path_toggle

parent 8064290b
Pipeline #147944 passed with stage
in 3 minutes and 57 seconds
......@@ -78,7 +78,7 @@ typedef struct {
GtkWidget *darea;
GtkWidget *annot_view;
GtkWidget *timer_label;
GtkWidget *single_ink_path_check;
GtkWidget *single_ink_path_toggle;
GtkWidget *remove_button;
GtkWidget *type_selector;
GtkWidget *main_box;
......@@ -399,7 +399,7 @@ pgd_annots_start_toggle_annot (GtkWidget *button,
gtk_button_set_label (GTK_BUTTON (button), "Done");
gtk_widget_hide (demo->timer_label);
if (demo->annot_type == POPPLER_ANNOT_INK)
gtk_widget_show (demo->single_ink_path_check);
gtk_widget_show (demo->single_ink_path_toggle);
pgd_annots_start_add_annot (button, demo);
}
break;
......@@ -407,7 +407,7 @@ pgd_annots_start_toggle_annot (GtkWidget *button,
case MODE_ADD: {
gtk_button_set_label (GTK_BUTTON (button), "Add");
gtk_widget_show (demo->timer_label);
gtk_widget_hide (demo->single_ink_path_check);
gtk_widget_hide (demo->single_ink_path_toggle);
pgd_annots_done (demo);
}
break;
......@@ -533,7 +533,7 @@ pgd_annot_type_selection_changed (GtkComboBox *combo,
if (demo->mode == MODE_ADD && annot_type != demo->annot_type) {
pgd_annots_ink_annots_done (demo);
gtk_widget_set_visible (demo->single_ink_path_check, annot_type == POPPLER_ANNOT_INK);
gtk_widget_set_visible (demo->single_ink_path_toggle, annot_type == POPPLER_ANNOT_INK);
}
demo->annot_type = annot_type;
......@@ -600,7 +600,7 @@ pgd_annot_view_set_annot_free_text (GtkWidget *table,
}
static void
pgd_annots_single_ink_annot_changed (GtkToggleButton *button,
pgd_annots_single_ink_annot_toggled (GtkToggleButton *button,
PgdAnnotsDemo *demo)
{
if (demo->mode != MODE_NORMAL && demo->mode != MODE_ADD)
......@@ -1136,7 +1136,7 @@ pgd_annots_done (PgdAnnotsDemo *demo)
gtk_widget_set_sensitive (demo->remove_button, TRUE);
gtk_widget_hide (demo->single_ink_path_check);
gtk_widget_hide (demo->single_ink_path_toggle);
gtk_label_set_text (GTK_LABEL (demo->timer_label), NULL);
gtk_widget_show (demo->timer_label);
}
......@@ -1532,12 +1532,12 @@ pgd_annots_create_widget (PopplerDocument *document)
gtk_box_pack_start (GTK_BOX (vbox), demo->timer_label, FALSE, TRUE, 0);
gtk_widget_show (demo->timer_label);
demo->single_ink_path_check = gtk_check_button_new_with_label ("Use one path per ink annotation");
gtk_widget_set_halign(demo->single_ink_path_check, GTK_ALIGN_END);
g_signal_connect (demo->single_ink_path_check, "toggled",
G_CALLBACK (pgd_annots_single_ink_annot_changed),
demo->single_ink_path_toggle = gtk_check_button_new_with_label ("Use one path per ink annotation");
gtk_widget_set_halign(demo->single_ink_path_toggle, GTK_ALIGN_END);
g_signal_connect (demo->single_ink_path_toggle, "toggled",
G_CALLBACK (pgd_annots_single_ink_annot_toggled),
(gpointer) demo);
gtk_box_pack_start( GTK_BOX (vbox), demo->single_ink_path_check, FALSE, TRUE, 0);
gtk_box_pack_start( GTK_BOX (vbox), demo->single_ink_path_toggle, FALSE, TRUE, 0);
hpaned = gtk_paned_new (GTK_ORIENTATION_HORIZONTAL);
......
Markdown is supported
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