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

« back to all changes in this revision

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

  • Committer: Package Import Robot
  • Author(s): POJAR GEORGE
  • Date: 2013-05-24 01:42:00 UTC
  • Revision ID: package-import@ubuntu.com-20130524014200-b156v5n1ifwagbn4
Tags: 1.8-2ubuntu11
* Modified debian/patches/gnomeradio-media_types.patch: Fixed crashed with
  SIGSEGV in fprintf(). (LP: #1183470)
* Modified gnomeradio-license.patch:
  - Rewrite About() to display only the essential information.
  - Run gtk-update-icon-cache in uninstall-hook.
* Modified gnomeradio-station_list.patch: Added missing ellipsis for some
  buttons in Preferences menu.
* Added full path of icon in debian/menu.

Show diffs side-by-side

added added

removed removed

Lines of Context:
812
812
}
813
813
*/
814
814
 
 
815
static char *get_license_text (void)
 
816
{
 
817
        const char *license[] = {
 
818
                N_("Gnomeradio is free software; you can redistribute it and/or modify "
 
819
                   "it under the terms of the GNU General Public License as published by "
 
820
                   "the Free Software Foundation; either version 2 of the License, or "
 
821
                   "(at your option) any later version."),
 
822
                N_("Gnomeradio is distributed in the hope that it will be useful, "
 
823
                   "but WITHOUT ANY WARRANTY; without even the implied warranty of "
 
824
                   "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the "
 
825
                   "GNU General Public License for more details."),
 
826
                N_("You should have received a copy of the GNU General Public License "
 
827
                   "along with Gnomeradio; if not, write to the Free Software Foundation, "
 
828
                   "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA")
 
829
        };
 
830
        return g_strjoin ("\n\n",
 
831
                          _(license[0]),
 
832
                          _(license[1]),
 
833
                          _(license[2]),
 
834
                          NULL);
 
835
}
 
836
 
815
837
static void about_button_clicked_cb(GtkButton *button, gpointer data)
816
838
{
817
 
        GdkPixbuf *app_icon;
818
 
        GtkIconTheme *icontheme;
819
839
        static GtkWidget *about;
820
840
        const char *authors[] = {"Jörgen Scheibengruber <mfcn@gmx.de>", NULL};
821
 
        char *text;
822
841
        
823
 
        gchar *license = g_strconcat(
824
 
                "\nGnomeradio is free software; you can redistribute it and/or modify ",
825
 
                "it under the terms of the GNU General Public License as published by ",
826
 
                "the Free Software Foundation; either version 2 of the License, or "
827
 
                "(at your option) any later version.\n\r",
828
 
                "Gnomeradio is distributed in the hope that it will be useful, ",
829
 
                "but WITHOUT ANY WARRANTY; without even the implied warranty of ",
830
 
                "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the ",
831
 
                "GNU General Public License for more details.\n\r",
832
 
                "You should have received a copy of the GNU General Public License ",
833
 
                "along with Gnomeradio; if not, write to the Free Software Foundation, ",
834
 
                "Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA",
835
 
                NULL);
836
 
 
837
842
        /* Feel free to put your names here translators :-) */
838
843
        char *translators = _("TRANSLATORS");
 
844
        char *license = get_license_text ();
839
845
 
840
846
        if (about)
841
847
        {
842
848
                gtk_window_present(GTK_WINDOW(about));
843
849
                return;
844
850
        }
845
 
        icontheme = gtk_icon_theme_get_default();
846
 
        app_icon = gtk_icon_theme_load_icon(icontheme, "gnomeradio", 48, 0, NULL);
847
 
 
848
 
#ifdef HAVE_LIRC        
849
 
        text =_("Gnomeradio is a FM-Tuner application for the GNOME desktop. "
850
 
                                                        "It should work with all tuner hardware that is supported by the video4linux drivers.\n\n"
851
 
                                                        "This version has been compiled with LIRC support.");
852
 
#else
853
 
        text =_("Gnomeradio is a FM-Tuner application for the GNOME desktop. "
854
 
                                                        "It should work with all tuner hardware that is supported by the video4linux drivers.\n\n"
855
 
                                                        "This version has been compiled without LIRC support.");
856
 
#endif
857
851
        
858
852
        gtk_show_about_dialog(NULL,
859
 
                                "program-name", "Gnomeradio",
860
 
                                "version", VERSION,
861
 
                                "license", license,
862
 
                                "wrap-license", TRUE,
863
 
                                "copyright", "Copyright 2001 - 2006 Jörgen Scheibengruber",
864
 
                                "comments", text,
865
 
                                "website", "http://www.gnome.org/projects/gnomeradio/",
866
 
                                "website-label", _("Gnomeradio Homepage"),
867
 
                                "authors", (const char **) authors,
868
 
                                "translator-credits", strcmp("TRANSLATORS", translators) ? translators : NULL,
869
 
                                "logo", app_icon, NULL);
 
853
                              "version", VERSION,
 
854
                              "copyright", _("Copyright \xc2\xa9 2001 - 2006 Jörgen Scheibengruber"),
 
855
                              "comments", _("FM radio tuner for GNOME"),
 
856
                              "authors", authors,
 
857
                              "translator-credits", strcmp("TRANSLATORS", translators) ? translators : NULL,
 
858
                              "logo-icon-name", "gnomeradio",
 
859
                              "license", license,
 
860
                              "wrap-license", TRUE,
 
861
                              "website-label", _("Gnomeradio Website"),
 
862
                              "website", "http://www.gnome.org/projects/gnomeradio/",
 
863
                              NULL);
870
864
 
871
865
        g_free (license);
872
866