~audio-recorder/audio-recorder/trunk

« back to all changes in this revision

Viewing changes to src/utility.c

  • Committer: Osmo Antero
  • Date: 2011-09-18 09:13:24 UTC
  • Revision ID: osmoma@gmail.com-20110918091324-wosqw4bzzhhyqz6m
VersionĀ 0.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
100
100
}
101
101
 
102
102
void str_cut_nicely(gchar *s, glong to_len, glong min_len) {
103
 
    // VF0610 Live! Cam Socialize HD Analog Mono (Microphone)
104
 
    // 012345678901234567890123456789012345678901234567890123456789
105
 
    //          10        20        30        40
 
103
    // Cut string nicely to given to_len.
106
104
    glong l = g_utf8_strlen(s, -1);
107
105
    if (l <= to_len) return;
108
106
 
313
311
    g_free(prog_name);
314
312
 
315
313
    answer = gtk_dialog_run(GTK_DIALOG(dialog));
 
314
    if (answer == -1) {}
316
315
    // answer not used
317
316
 
318
317
    gtk_widget_destroy(dialog);