Skip to content

Commit

Permalink
switch view menu to radiomenuitems
Browse files Browse the repository at this point in the history
  • Loading branch information
tobias47n9e committed Jul 5, 2015
1 parent ef3603c commit d8bae24
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 26 deletions.
34 changes: 12 additions & 22 deletions innstereo/gui_layout.glade
Original file line number Diff line number Diff line change
Expand Up @@ -3089,24 +3089,6 @@ customizable grid.</property>
<child>
<placeholder/>
</child>
<child>
<placeholder/>
</child>
<child>
<placeholder/>
</child>
<child>
<placeholder/>
</child>
<child>
<placeholder/>
</child>
<child>
<placeholder/>
</child>
<child>
<placeholder/>
</child>
</object>
<packing>
<property name="position">2</property>
Expand Down Expand Up @@ -4042,38 +4024,46 @@ customizable grid.</property>
<property name="visible">True</property>
<property name="can_focus">False</property>
<child>
<object class="GtkMenuItem" id="menuitem_stereo">
<object class="GtkRadioMenuItem" id="menuitem_stereo">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">Stereonet</property>
<property name="use_underline">True</property>
<property name="active">True</property>
<property name="draw_as_radio">True</property>
<signal name="activate" handler="on_menuitem_stereo_activate" swapped="no"/>
</object>
</child>
<child>
<object class="GtkMenuItem" id="menuitem_stereo_rose">
<object class="GtkRadioMenuItem" id="menuitem_stereo_rose">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">Stereonet and Rose</property>
<property name="use_underline">True</property>
<property name="draw_as_radio">True</property>
<property name="group">menuitem_stereo</property>
<signal name="activate" handler="on_menuitem_stereo_rose_activate" swapped="no"/>
</object>
</child>
<child>
<object class="GtkMenuItem" id="menuitem_rose_view">
<object class="GtkRadioMenuItem" id="menuitem_rose_view">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">Rose diagram</property>
<property name="use_underline">True</property>
<property name="draw_as_radio">True</property>
<property name="group">menuitem_stereo</property>
<signal name="activate" handler="on_menuitem_rose_view_activate" swapped="no"/>
</object>
</child>
<child>
<object class="GtkMenuItem" id="menuitem_pt_view">
<object class="GtkRadioMenuItem" id="menuitem_pt_view">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">Paleostress View</property>
<property name="use_underline">True</property>
<property name="draw_as_radio">True</property>
<property name="group">menuitem_stereo</property>
<signal name="activate" handler="on_menuitem_pt_view_activate" swapped="no"/>
</object>
</child>
Expand Down
8 changes: 4 additions & 4 deletions innstereo/main_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ def on_toolbutton_paste_clicked(self, toolbutton):
else:
self.insert_layer_data(parse, drop_info=None)

def on_menuitem_stereo_activate(self, widget):
def on_menuitem_stereo_activate(self, radiomenuitem):
# pylint: disable=unused-argument
"""
Switches to the stereonet-only view.
Expand All @@ -485,7 +485,7 @@ def on_menuitem_stereo_activate(self, widget):
self.view_mode = "stereonet"
self.redraw_plot()

def on_menuitem_stereo_rose_activate(self, widget):
def on_menuitem_stereo_rose_activate(self, radiomenuitem):
# pylint: disable=unused-argument
"""
Switches to the stereonet and rose-diagram view.
Expand All @@ -498,7 +498,7 @@ def on_menuitem_stereo_rose_activate(self, widget):
self.view_mode = "stereo-rose"
self.redraw_plot()

def on_menuitem_rose_view_activate(self, widget):
def on_menuitem_rose_view_activate(self, radiomenuitem):
# pylint: disable=unused-argument
"""
Switches to the rose-diagram-only view.
Expand All @@ -511,7 +511,7 @@ def on_menuitem_rose_view_activate(self, widget):
self.view_mode = "rose"
self.redraw_plot()

def on_menuitem_pt_view_activate(self, widget):
def on_menuitem_pt_view_activate(self, radiomenuitem):
# pylint: disable=unused-argument
"""
Switches to the paleostress view.
Expand Down

0 comments on commit d8bae24

Please sign in to comment.