/b-gtk/fix-viz

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/b-gtk/fix-viz

« back to all changes in this revision

Viewing changes to olive/frontend/gtk/__init__.py

  • Committer: Szilveszter Farkas (Phanatic)
  • Date: 2006-08-19 20:31:46 UTC
  • mto: (0.14.1 main) (93.1.1 win32.bialix)
  • mto: This revision was merged to the branch mainline in revision 83.
  • Revision ID: Szilveszter.Farkas@gmail.com-20060819203146-1a5b098844b3f106
GUI (toolbar + menu) cleanup.

2006-08-19  Szilveszter Farkas <Szilveszter.Farkas@gmail.com>

    * olive/frontend/gtk/__init__.py: applied Diff toolbutton menu
    * olive/frontend/gtk/menu.py: implemented the Diff toolbutton menu
    * cmenu.ui: added Diff toolbutton menu; removed Log from right context menu
    * olive.glade: swapped Diff and Log toolbuttons; coverted log button to an
      ordinary GtkToolButton

Show diffs side-by-side

added added

removed removed

Lines of Context:
87
87
                "on_menuitem_stats_log_activate": handler.on_menuitem_stats_log_activate,
88
88
                "on_menuitem_stats_infos_activate": handler.on_menuitem_stats_infos_activate,
89
89
                "on_toolbutton_refresh_clicked": handler.on_menuitem_view_refresh_activate,
 
90
                "on_toolbutton_log_clicked": handler.on_menuitem_stats_log_activate,
 
91
                "on_menutoolbutton_diff_clicked": handler.on_menuitem_stats_diff_activate,
90
92
                "on_toolbutton_commit_clicked": handler.on_menuitem_branch_commit_activate,
91
93
                "on_toolbutton_pull_clicked": handler.on_menuitem_branch_pull_activate,
92
94
                "on_toolbutton_push_clicked": handler.on_menuitem_branch_push_activate,
109
111
        pos = self.pref.get_preference('paned_position', 'int')
110
112
        self.comm.hpaned_main.set_position(pos)
111
113
        
 
114
        # Apply menu to the toolbutton
 
115
        menubutton = self.toplevel.get_widget('menutoolbutton_diff')
 
116
        menubutton.set_menu(handler.menu.toolbar_diff)
 
117
        
112
118
        # Now we can show the window
113
119
        self.window.show_all()
114
120