[Thunar-dev] Classic UI
Auke Kok
sofar at lunar-linux.org
Wed Mar 16 09:56:17 CET 2005
Brian wrote:
>
>>> I think combobox with "view as icons" is not so important so this
>>> option could be put somewhere in menu.
>>>
>>
>> this is the first thing I'd use and switch it to a list view. I guess
>> the option is *very* important to a large group of people, while the
>> other group never touches it.
>>
>> sofar
>
>
> By "First thing I'd use" do you mean that you really don't like icon
> view and would thus not be switching to it very often? I remember
> having the same feeling when I first started using xffm. But my
> intention was to find the option quickly, switch it to icon view, and
> then never touch it again.
>
> I agree with what's been said earlier about it. It's not something
> that people would want to switch between that often. Getting rid of it
> may be a good idea for the sake of a simpler interface. The only
> reason that I'd want a combobox there all the time is if there was a
> "View as image collection" like XP's explorer or the older versions of
> Nautilus.
>
> Anyways. I've made a simple "Middle click on a folder opens in a new
> window" feature for the mockup. Sorry for any bad code, I just started
> learning python a few hours ago. (Half of which were spent realizing
> that python doesn't care if 4 spaces and a tab LOOK the same in SciTE...)
>
> I added this function in ThunarWindow.py:
>
> def _action_folder_middle_click(self):
> files = self.view.get_selected_files()
> if len(files) == 1:
> info = files[0]
> self._action_open_in_new_window(info)
>
> And changed some stuff in ThunarIconView.py:
>
> def _button_press_event(self, event):
> if event.button == 3 and event.type == gtk.gdk.BUTTON_PRESS:
> path = self.get_path_at_pos(int(event.x), int(event.y))
> if path:
> if not self.path_is_selected(path):
> self.unselect_all()
> self.select_path(path)
> self.grab_focus()
> self.context_menu()
> return True
> elif event.button == 2 and event.type == gtk.gdk.BUTTON_PRESS:
> path = self.get_path_at_pos(int(event.x), int(event.y))
> if path:
> iter = self.get_model().get_iter(path)
> info = self.get_model().get(iter,
> ThunarModel.COLUMN_FILEINFO)[0]
> self.select_path(path)
> if info.is_directory():
> self.get_toplevel()._action_folder_middle_click()
> elif event.button == 1 and event.type == gtk.gdk._2BUTTON_PRESS:
> path = self.get_path_at_pos(int(event.x), int(event.y))
> if path:
> iter = self.get_model().get_iter(path)
> if event.button == 1:
> self.unselect_all()
> self.select_path(path)
> info = self.get_model().get(iter,
> ThunarModel.COLUMN_FILEINFO)[0]
> if info.is_directory():
> self.activated(info)
> return True
> return False
>
> I hope I'm not the only one interested in this feature.
very, middle-click also conforms to mozilla/firefox 'open in new tab'
behaviour, I would get used to that very quickly!
sofar
More information about the Thunar-dev
mailing list