~mmcg069/software-center/sortable-app-tree-view

« back to all changes in this revision

Viewing changes to softwarecenter/toolkit.py

  • Committer: Michael Vogt
  • Date: 2011-08-04 14:42:34 UTC
  • mfrom: (2023.1.7 rnrdialogs)
  • Revision ID: michael.vogt@ubuntu.com-20110804144234-vha6t4zs0y9314ku
* lp:~mmcg069/software-center/rnr-dialogs-gtk3:
  - support multiple toolkits for the submit review functionatlity
  - port the submit review app to gtk3

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
import sys
 
2
 
 
3
class UIToolkits:
 
4
    GTK2 = 0
 
5
    GTK3 = 1
 
6
    QML = 2
 
7
    FALLBACK = GTK2
 
8
 
 
9
 
 
10
if 'software-center-gtk3' in sys.argv[0]:
 
11
    CURRENT_TOOLKIT = UIToolkits.GTK3
 
12
elif 'software-center-gtk' in sys.argv[0]:
 
13
    CURRENT_TOOLKIT = UIToolkits.GTK2
 
14
elif 'software-center-qml' in sys.argv[0]:
 
15
    CURRENT_TOOLKIT = UIToolkits.QML
 
16
else:
 
17
    CURRENT_TOOLKIT = UIToolkits.FALLBACK