73
73
if (!priv->show_default)
76
gtk_combo_box_remove_text (GTK_COMBO_BOX (priv->combo), 0);
76
gtk_combo_box_text_remove (GTK_COMBO_BOX_TEXT (priv->combo), 0);
78
78
/* make sure there is one item active */
79
79
if (gtk_combo_box_get_active (GTK_COMBO_BOX (priv->combo)) == -1) {
86
86
if (priv->show_default)
89
gtk_combo_box_prepend_text (GTK_COMBO_BOX (priv->combo),
90
_("<Keep current values>"));
89
gtk_combo_box_text_prepend_text (GTK_COMBO_BOX_TEXT (priv->combo),
90
_("<Keep current values>"));
93
93
priv->show_default = show;
176
176
BraseroRenamePrivate *priv;
179
178
priv = BRASERO_RENAME_PRIVATE (self);
181
is_at_end = gtk_combo_box_get_active (GTK_COMBO_BOX (priv->insert_combo)) != 0;
180
if (!gtk_combo_box_get_active (GTK_COMBO_BOX (priv->insert_combo)))
183
183
if (nb_items < 10){
184
184
return g_strdup_printf ("%i%s", item_num, name);
311
311
gtk_notebook_set_show_border (GTK_NOTEBOOK (priv->notebook), FALSE);
312
312
gtk_notebook_set_show_tabs (GTK_NOTEBOOK (priv->notebook), FALSE);
314
priv->combo = gtk_combo_box_new_text ();
314
priv->combo = gtk_combo_box_text_new ();
315
315
gtk_widget_show (priv->combo);
316
316
gtk_box_pack_start (GTK_BOX (object), priv->combo, FALSE, FALSE, 0);
318
318
priv->show_default = 1;
319
gtk_combo_box_prepend_text (GTK_COMBO_BOX (priv->combo), _("<Keep current values>"));
320
gtk_combo_box_append_text (GTK_COMBO_BOX (priv->combo), _("Insert text"));
321
gtk_combo_box_append_text (GTK_COMBO_BOX (priv->combo), _("Delete text"));
322
gtk_combo_box_append_text (GTK_COMBO_BOX (priv->combo), _("Substitute text"));
323
gtk_combo_box_append_text (GTK_COMBO_BOX (priv->combo), _("Number files according to a pattern"));
324
gtk_combo_box_append_text (GTK_COMBO_BOX (priv->combo), _("Insert number sequence at beginning"));
319
gtk_combo_box_text_prepend_text (GTK_COMBO_BOX_TEXT (priv->combo), _("<Keep current values>"));
320
gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (priv->combo), _("Insert text"));
321
gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (priv->combo), _("Delete text"));
322
gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (priv->combo), _("Substitute text"));
323
gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (priv->combo), _("Number files according to a pattern"));
324
gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (priv->combo), _("Insert number sequence at beginning"));
326
326
g_signal_connect (priv->combo,
345
345
gtk_box_pack_start (GTK_BOX (hbox), entry, TRUE, TRUE, 0);
346
346
priv->insert_entry = entry;
348
combo = gtk_combo_box_new_text ();
348
combo = gtk_combo_box_text_new ();
349
349
gtk_widget_show (combo);
351
351
/* Translators: This finishes previous action "Insert". It goes like
352
352
* this: "Insert" [Entry] "at the beginning". */
353
gtk_combo_box_append_text (GTK_COMBO_BOX (combo), _("at the beginning"));
353
gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (combo), _("at the beginning"));
355
355
/* Translators: This finishes previous action "Insert". It goes like
356
356
* this: "Insert" [Entry] "at the end". */
357
gtk_combo_box_append_text (GTK_COMBO_BOX (combo), _("at the end"));
357
gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (combo), _("at the end"));
359
359
gtk_combo_box_set_active (GTK_COMBO_BOX (combo), 0);
360
360
gtk_box_pack_start (GTK_BOX (hbox), combo, FALSE, FALSE, 0);