Re: [gedit-list] Writeroom/Darkroom like plugin for gedit
- From: Paolo Maggi <paolo maggi gmail com>
- To: Paul Novotny <paul novotny gmail com>
- Cc: gedit-list gnome org
- Subject: Re: [gedit-list] Writeroom/Darkroom like plugin for gedit
- Date: Wed, 30 Jan 2008 18:24:06 +0100
Hi,
> Last night i started tinkering on a plugin that emulates darkroom or
> writeroom. Basically makes gedit fullscreen and only shows text, so you
> have no distractions. I started with the full screen plugin
> (http://live.gnome.org/Gedit/Plugins), and am making some progress but I
> have some questions:
>
> 1) Can you hide the menu bar?
It should be possible. With gedit_window_get_ui_manager you can get the
UIManager for the gedit window and then you can get the menu bar using
gtk_ui_manager_get_widget (manager, "/MenuBar"); and call
gtk_widget_hide
>
> 2) Can you hide the tabs?
Yes, see
http://svn.gnome.org/viewvc/gedit-plugins/trunk/plugins/showtabbar/gedit-show-tabbar-plugin.c?view=markup
With the get_notebook function (from the above link) you can get a
reference to the notebook. Then you can use gtk_notebook_set_show_tabs.
Ciao,
Paolo
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]