~umang/indicator-stickynotes/trunk

« back to all changes in this revision

Viewing changes to stickynotes/gui.py

  • Committer: Umang Varma
  • Date: 2016-06-29 00:13:27 UTC
  • Revision ID: git-v1:5906ee2924a84839df9740bb56bfd9e280925ecc
.glade -> .ui in code

Show diffs side-by-side

added added

removed removed

Lines of Context:
60
60
        self.builder = Gtk.Builder()
61
61
        GObject.type_register(GtkSource.View)
62
62
        self.builder.add_from_file(os.path.join(self.path,
63
 
            "StickyNotes.glade"))
 
63
            "StickyNotes.ui"))
64
64
        self.builder.connect_signals(self)
65
65
        self.winMain = self.builder.get_object("MainWindow")
66
66
 
117
117
    # (re-)show the sticky note after it has been hidden getting a sticky note
118
118
    # to show itself was problematic after a "show desktop" command in unity.
119
119
    # (see bug lp:1105948).  Reappearance of dialog is problematic for any
120
 
    # dialog which has the skip_taskbar_hint=True property in StickyNotes.glade
 
120
    # dialog which has the skip_taskbar_hint=True property in StickyNotes.ui
121
121
    # (property necessary to prevent sticky note from showing on the taskbar)
122
122
 
123
123
    # workaround which is based on deleting a sticky note and re-initializing
309
309
 
310
310
def show_about_dialog():
311
311
    glade_file = os.path.abspath(os.path.join(os.path.dirname(__file__),
312
 
            '..', "GlobalDialogs.glade"))
 
312
            '..', "GlobalDialogs.ui"))
313
313
    builder = Gtk.Builder()
314
314
    builder.add_from_file(glade_file)
315
315
    winAbout = builder.get_object("AboutWindow")
327
327
        self.path = os.path.abspath(os.path.join(os.path.dirname(__file__),
328
328
            '..'))
329
329
        self.builder.add_objects_from_file(os.path.join(self.path,
330
 
            "SettingsCategory.glade"), ["catExpander"])
 
330
            "SettingsCategory.ui"), ["catExpander"])
331
331
        self.builder.connect_signals(self)
332
332
        widgets = ["catExpander", "lExp", "cbBG", "cbText", "eName",
333
333
                "confirmDelete", "fbFont"]
428
428
        self.categories = {}
429
429
        self.path = os.path.abspath(os.path.join(os.path.dirname(__file__),
430
430
            '..'))
431
 
        glade_file = (os.path.join(self.path, "GlobalDialogs.glade"))
 
431
        glade_file = (os.path.join(self.path, "GlobalDialogs.ui"))
432
432
        self.builder = Gtk.Builder()
433
433
        self.builder.add_from_file(glade_file)
434
434
        self.builder.connect_signals(self)