1. Vladimir Kolev
  2. gSharkDown

Commits

Damián Nohales  committed cccf481

Changes about donations in the about dialog.

  • Participants
  • Parent commits db674bf
  • Branches default

Comments (0)

Files changed (4)

File data/about_dialog.ui

View file
  • Ignore whitespace
   <!-- interface-naming-policy project-wide -->
   <object class="GtkAboutDialog" id="aboutdialog">
     <property name="can_focus">False</property>
+    <property name="tooltip_text" translatable="yes">Please buy me a beer</property>
     <property name="border_width">5</property>
     <property name="title" translatable="yes">About GrooveDown</property>
     <property name="window_position">center-on-parent</property>
                 <property name="can_focus">False</property>
                 <property name="layout_style">center</property>
                 <child>
-                  <object class="GtkButton" id="flattrbut">
+                  <object class="GtkButton" id="button_donate">
                     <property name="visible">True</property>
                     <property name="can_focus">True</property>
                     <property name="receives_default">True</property>
-                    <property name="tooltip_text" translatable="yes">Flattr gSharkDow</property>
+                    <property name="tooltip_text" translatable="yes">Please buy me a beer :)</property>
                     <property name="use_action_appearance">False</property>
                     <property name="image">image2</property>
                     <property name="relief">none</property>
   <object class="GtkImage" id="image2">
     <property name="visible">True</property>
     <property name="can_focus">False</property>
-    <property name="pixbuf">flattr-badge-large.png</property>
+    <property name="pixbuf">donate.png</property>
   </object>
   <object class="GtkImage" id="image3">
     <property name="visible">True</property>

File data/donate.png

  • Ignore whitespace
Added
New image

File lib/enviroment.py

View file
  • Ignore whitespace
 
         # URL to check for updates
         self.UPDATE_URL = "http://bitbucket.org/vkolev/gsharkdown/raw/latest/VERSION"
-        self.FLATTR_URL = "http://flattr.com/thing/275401/gSharkDown"
+        self.DONATE_URL = "https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=427TQGWLEXXFQ&lc=AR&item_name=gSharkDown&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donate_LG%2egif%3aNonHosted"
 
         ### The following attributes should be initialized on initialize method ###
         # Application base path

File lib/guihelpers.py

View file
  • Ignore whitespace
         builder = gtk.Builder()
         builder.set_translation_domain(env().APP)
         builder.add_from_file('%s/data/about_dialog.ui' % env().BASEPATH)
-        flattr = builder.get_object('flattrbut')
-        flattr.connect("clicked", self.on_flattr_this)
+        donate = builder.get_object('button_donate')
+        donate.connect("clicked", self.on_donate)
         about = builder.get_object('aboutdialog')
         about.set_version(env().VERSION)
         about.run()
         about.destroy()
 
-    def on_flattr_this(self, widget, data = None):
+    def on_donate(self, widget, data = None):
         """
-        Opens the flattr page for gSharkDown
+        Opens the PayPal page for gSharkDown
         """
-        webbrowser.open(env().FLATTR_URL)
+        webbrowser.open(env().DONATE_URL)
 
 class GsharkIndicator:
     """