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

« back to all changes in this revision

Viewing changes to .pc/gnomeradio-save_the_world.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:
244
244
        
245
245
        /*gnome_dialog_set_parent(GNOME_DIALOG(dialog), GTK_WINDOW(app));*/
246
246
        
247
 
        settings_device_cb (mode);
 
247
        action_mode (mode);
248
248
 
249
249
        choise = GTK_RESPONSE_HELP;
250
250
        while (choise == GTK_RESPONSE_HELP)
256
256
                                display_help_cb("gnomeradio-settings");
257
257
                        break;
258
258
                        default:
259
 
                                /* We need the hide signal to get the value of the device_entry */
 
259
                                /* We need the hide signal to get the value of the device[mixer]_entry */
260
260
                                gtk_widget_hide(dialog);
261
261
                                gtk_widget_destroy(dialog);
262
262
                }
287
287
                if (!restart) {
288
288
                        mode = RADIO_DEVICE;
289
289
                        prefs_button_clicked_cb(NULL, app);
 
290
                        mode = PRESETS;
290
291
                }
291
292
        }
292
293
}
311
312
                if (!restart) {
312
313
                        mode = MIXER_DEVICE;
313
314
                        prefs_button_clicked_cb(NULL, app);
 
315
                        mode = PRESETS;
314
316
                }
315
317
 
316
318
        } else {
874
876
static void about_button_clicked_cb(GtkButton *button, gpointer data)
875
877
{
876
878
        static GtkWidget *about;
877
 
        const char *authors[] = {"Jörgen Scheibengruber <mfcn@gmx.de>", NULL};
 
879
        const char *authors[] = {"J\xc3\xb6rgen Scheibengruber <mfcn@gmx.de>", NULL};
878
880
        
879
881
        /* Feel free to put your names here translators :-) */
880
882
        char *translators = _("TRANSLATORS");
888
890
        
889
891
        gtk_show_about_dialog (NULL,
890
892
                               "version", VERSION,
891
 
                               "copyright", _("Copyright \xc2\xa9 2001 - 2006 Jörgen Scheibengruber"),
 
893
                               "copyright", _("Copyright \xc2\xa9 2001 - 2006 J\xc3\xb6rgen Scheibengruber"),
892
894
                               "comments", _("Listen to FM radio"),
893
895
                               "authors", authors,
894
896
                               "translator-credits", strcmp("TRANSLATORS", translators) ? translators : NULL,
1358
1360
                g_print(_("%s\nRun '%s --help' to see a full list of available command line options.\n"),
1359
1361
                          err->message, argv[0]);
1360
1362
                g_error_free(err);
1361
 
                g_option_context_free(ctx);
1362
1363
                exit(1);
1363
1364
        }
1364
1365
        g_option_context_free(ctx);
1410
1411
 
1411
1412
        gtk_widget_show_all(app);
1412
1413
        main_visible = TRUE;
 
1414
        mode = PRESETS;
1413
1415
 
1414
1416
        /* Create an tray icon */
1415
1417
        create_tray_icon(app);