~ubuntu-branches/ubuntu/trusty/gnomeradio/trusty

« back to all changes in this revision

Viewing changes to .pc/gnomeradio-auto_device.patch/src/gui.c

  • Committer: Package Import Robot
  • Author(s): POJAR GEORGE
  • Date: 2013-09-11 15:06:44 UTC
  • Revision ID: package-import@ubuntu.com-20130911150644-l8x3ubsyqmrvnkh8
Tags: 1.8-2ubuntu20
* Updated debian/patches/gnomeradio-station_list.patch: Prevent to parse
  malformed/incomplete/invalid XML file.
* Updated debian/patches/gnomeradio-auto_device.patch:
  - Automatically detect radio device when users type auto in settings field.
  - Updated error messages to be clear and precise.
* Updated debian/patches/gnomeradio-alsamixer.patch: Make presets list the
  default widget when open settings dialog. Presets are the most common
  settings for users than devices settings.
* Updated debian/patches/gnomeradio-about.patch: It is not safe in principle
  to write raw UTF-8 in narrow string literals, made to be multibyte
  encodings.
* debian/patches/gnomeradio-prefs.patch: Renamed to
  debian/patches/gnomeradio-about.patch.
* debian/patches/gnomeradio-preferences.patch: Make sentence capitalization in
  text and increased preferences dialog.

Show diffs side-by-side

added added

removed removed

Lines of Context:
257
257
        
258
258
        /*gnome_dialog_set_parent(GNOME_DIALOG(dialog), GTK_WINDOW(app));*/
259
259
        
260
 
        settings_device_cb (mode);
 
260
        action_mode (mode);
261
261
 
262
262
        choise = GTK_RESPONSE_HELP;
263
263
        while (choise == GTK_RESPONSE_HELP)
269
269
                                display_help_cb("gnomeradio-settings");
270
270
                        break;
271
271
                        default:
272
 
                                /* We need the hide signal to get the value of the device_entry */
 
272
                                /* We need the hide signal to get the value of the device[mixer]_entry */
273
273
                                gtk_widget_hide(dialog);
274
274
                                gtk_widget_destroy(dialog);
275
275
                }
300
300
                if (!restart) {
301
301
                        mode = RADIO_DEVICE;
302
302
                        prefs_button_clicked_cb(NULL, app);
 
303
                        mode = PRESETS;
303
304
                }
304
305
        }
305
306
}
324
325
                if (!restart) {
325
326
                        mode = MIXER_DEVICE;
326
327
                        prefs_button_clicked_cb(NULL, app);
 
328
                        mode = PRESETS;
327
329
                }
328
330
 
329
331
        } else {
889
891
static void about_button_clicked_cb(GtkButton *button, gpointer data)
890
892
{
891
893
        static GtkWidget *about;
892
 
        const char *authors[] = {"Jörgen Scheibengruber <mfcn@gmx.de>", NULL};
 
894
        const char *authors[] = {"J\xc3\xb6rgen Scheibengruber <mfcn@gmx.de>", NULL};
893
895
        
894
896
        /* Feel free to put your names here translators :-) */
895
897
        char *translators = _("TRANSLATORS");
903
905
        
904
906
        gtk_show_about_dialog (NULL,
905
907
                               "version", VERSION,
906
 
                               "copyright", _("Copyright \xc2\xa9 2001 - 2006 Jörgen Scheibengruber"),
 
908
                               "copyright", _("Copyright \xc2\xa9 2001 - 2006 J\xc3\xb6rgen Scheibengruber"),
907
909
                               "comments", _("Listen to FM radio"),
908
910
                               "authors", authors,
909
911
                               "translator-credits", strcmp("TRANSLATORS", translators) ? translators : NULL,
1359
1361
                g_print(_("%s\nRun '%s --help' to see a full list of available command line options.\n"),
1360
1362
                          err->message, argv[0]);
1361
1363
                g_error_free(err);
1362
 
                g_option_context_free(ctx);
1363
1364
                exit(1);
1364
1365
        }
1365
1366
        g_option_context_free(ctx);
1412
1413
 
1413
1414
        gtk_widget_show_all(app);
1414
1415
        main_visible = TRUE;
 
1416
        mode = PRESETS;
1415
1417
 
1416
1418
        /* Create an tray icon */
1417
1419
        create_tray_icon(app);