Permalink
Browse files

Removed pixmaps for generate buttons on headerbar

* Increased version
* Changed to setuptools from distutils
* More information about development on dialog
  • Loading branch information...
vfrico committed Nov 1, 2016
1 parent 97993af commit 634e70ebe55f399f574ebc8287b11a007a993ad1
Showing with 129 additions and 233 deletions.
  1. +11 −9 pimagizer/gtkpimagizer.py
  2. +1 −1 pimagizer/info.py
  3. +3 −4 setup.py
  4. BIN src/percent.png
  5. +0 −82 src/percent.svg
  6. +114 −62 src/pimagizer.glade
  7. BIN src/px.png
  8. +0 −75 src/px.svg
View
@@ -307,20 +307,22 @@ def __init__(self, imputfile):
###############################################
# *** Buttons Pixels(px) and Percent(%)
big_format = '<span size="xx-large"><b>{}</b></span>'
self.buttonPx = Gtk.ToggleButton()
imagePx = Gtk.Image.new_from_file("/usr/share/pimagizer/px.png")
self.buttonPx.add(imagePx)
labelPx = Gtk.Label(big_format.format("Px"))
self.buttonPx.add(labelPx)
self.buttonPx.show()
imagePx.show()
# It is connected below
labelPx.set_use_markup(True)
labelPx.show()
# It is connected below
self.buttonPr = Gtk.ToggleButton()
imagePr = Gtk.Image.new_from_file(
"/usr/share/pimagizer/percent.png")
self.buttonPr.add(imagePr)
labelPr = Gtk.Label(big_format.format("%"))
self.buttonPr.add(labelPr)
self.buttonPr.show()
imagePr.show()
labelPr.set_use_markup(True)
labelPr.show()
# pr => box23
self.buttonPr.connect("toggled", self.toggledPr, self.buttonPx)
@@ -344,7 +346,7 @@ def __init__(self, imputfile):
self.hb.pack_end(box2)
else: # Else "support headerbar"
else: # Else generate fake headerbar (for GTK =< 3.6)
self.buttonPr36 = self.builder.get_object("togglepr36")
self.buttonPx36 = self.builder.get_object("togglepx36")
View
@@ -1,5 +1,5 @@
#!/usr/bin/python
# -*- coding: UTF-8 -*-
name = 'pimagizer'
version = "0.4.4"
version = "0.4.5"
license = 'GPL-3'
View
@@ -22,7 +22,8 @@
#
import os
import shutil
from distutils.core import setup
# from distutils.core import setup
from setuptools import setup
from pimagizer import info
setup(
name="pimagizer",
@@ -42,9 +43,7 @@
"src/pimagizer-main.png",
"src/neucha.ttf",
"src/images_zh_CN.png",
"src/images_zh_TW.png",
"src/px.png",
"src/percent.png"]),
"src/images_zh_TW.png"]),
("/usr/share/applications/", ["src/pimagizer.desktop"]),
("/usr/share/icons/hicolor/scalable/apps/",
["src/pimagizer.svg"]),
View
Binary file not shown.
View

This file was deleted.

Oops, something went wrong.
Oops, something went wrong.

0 comments on commit 634e70e

Please sign in to comment.