Verified Commit 9bcfced4 authored by Jan Tojnar's avatar Jan Tojnar
Browse files

Fix coding style

Use eight spaces everywhere instead of mix of spaces and tabs,
remove trailing spaces, add braces to single-statement blocks.
parent aecbe6eb
GNU GENERAL PUBLIC LICENSE
Version 2, June 1991
GNU GENERAL PUBLIC LICENSE
Version 2, June 1991
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
Preamble
The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public
......@@ -56,7 +56,7 @@ patent must be licensed for everyone's free use or not licensed at all.
The precise terms and conditions for copying, distribution and
modification follow.
GNU GENERAL PUBLIC LICENSE
GNU GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License applies to any program or other work which contains
......@@ -255,7 +255,7 @@ make exceptions for this. Our decision will be guided by the two goals
of preserving the free status of all derivatives of our free software and
of promoting the sharing and reuse of software generally.
NO WARRANTY
NO WARRANTY
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
......@@ -277,9 +277,9 @@ YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES.
END OF TERMS AND CONDITIONS
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
......
......@@ -22,35 +22,34 @@ Changes in Buoh 0.8.2
Changes:
* The comics loading has been improved to make it faster. (Carlos García Campos)
* Icons are installed according to icon theme specification. (Carlos García Campos)
* Implement best fit and fit width zoom modes. Fit width is now the mode by
default. (Carlos García Campos)
* Implement best fit and fit width zoom modes. Fit width is now the mode by default. (Carlos García Campos)
* Make libgnomeui an optional dependency enabled by default when available.
(Carlos García Campos)
* Remember zoom mode between sessions. (Carlos García Campos)
New comics:
* Added:
- Calvin and Hobbes (english version)
- The Pink Panther
- Ronaldinho Gaucho
- Schlock mercenary
- Carla Ventresca & Herny Beckett
- Brainwaves
- C'est la vie
- Work it out
- Nichtlustig (German)
- ...and many more. (Esteban Sánchez Muñoz)
- Calvin and Hobbes (english version)
- The Pink Panther
- Ronaldinho Gaucho
- Schlock mercenary
- Carla Ventresca & Herny Beckett
- Brainwaves
- C'est la vie
- Work it out
- Nichtlustig (German)
- …and many more. (Esteban Sánchez Muñoz)
* Removed:
- Cats With Hands
- Frank & Ernest
- Wigu
- Owlie
- Bruno the Bandit
- Not available comics
- ...and many more.
- Cats With Hands
- Frank & Ernest
- Wigu
- Owlie
- Bruno the Bandit
- Not available comics
- …and many more.
* Fixed:
- Sinfest
- Forges (Esteban Sánchez Muñoz)
- Sinfest
- Forges (Esteban Sánchez Muñoz)
- A Lawyer, A Doctor & A Cop. (Carlos García Campos)
======================
......@@ -69,20 +68,20 @@ Changes:
New comics:
* Added 28 new comics, including:
- Ctrl+Alt+Del (thanks to James Hall)
- Penny Arcade
- PvP
- Alpha Luna
- Sinfest
- The amazing Spiderman
- Blondie
- Mother Goose & Grimm
- Dennis the menace
- Hagar the horrible
- Do you know Flo? (Dutch)
- Ctrl+Alt+Del (thanks to James Hall)
- Penny Arcade
- PvP
- Alpha Luna
- Sinfest
- The amazing Spiderman
- Blondie
- Mother Goose & Grimm
- Dennis the menace
- Hagar the horrible
- Do you know Flo? (Dutch)
- Doorzon (Dutch)
- Lectrrland (Dutch)
- ...and many more (Esteban Sánchez Muñoz)
- …and many more (Esteban Sánchez Muñoz)
Thanks to all the people who have proposed new comics.
* There are comics in dutch. (Esteban Sánchez Muñoz)
......@@ -93,13 +92,11 @@ Buoh 0.8
First public release.
Comics
* Including 128 online comics stripes.
* There are comics in english and in spanish.
* Browsing through an historical archive in each strip.
* Including 128 online comics stripes.
* There are comics in english and in spanish.
* Browsing through an historical archive in each strip.
Miscellaneous
* It's possible to save a comic to disk.
* Integration with GNOME lockdowns.
* The GUI follows the HIG.
* It is possible to save a comic to disk.
* Integration with GNOME lockdowns.
* The GUI follows the HIG.
-- What is Buoh? --
Buoh aims to help the comic lovers by providing an easy way of browsing and
reading their favourites online comic stripes.
Buoh aims to help the comic lovers by providing an easy way of browsing and reading their favourites online comic stripes.
Web: http://projects.gnome.org/buoh/
Mailing list: buoh-list@gnome.org - For discussions about the
development of Buoh itself.
development of Buoh itself.
-- License --
......
......@@ -3,7 +3,7 @@ import subprocess
import sys
if len(sys.argv) < 3:
sys.exit("usage: meson_post_install.py <icondir> <schemadir>")
sys.exit("usage: meson_post_install.py <icondir> <schemadir>")
icondir = sys.argv[1]
schemadir = sys.argv[2]
......
<Project xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:foaf="http://xmlns.com/foaf/0.1/"
xmlns:gnome="http://api.gnome.org/doap-extensions#"
xmlns="http://usefulinc.com/ns/doap#">
<name xml:lang="en">buoh</name>
<shortdesc xml:lang="en">A reader for online comic strips.</shortdesc>
<description xml:lang="en">Buoh is an application for viewing online comic strips and webcomics, designed to look and work well under the GNOME desktop. Select your favorite comic from a list of more than 130 comics and read them in a simple, clean, and easy to use interface. Additionally, you can browse through the comic strip archives or save a comic to disk.</description>
<homepage rdf:resource="http://buoh.steve-o.org/" />
<download-page rdf:resource="http://buoh.steve-o.org/download.html"/>
<bug-database rdf:resource="https://gitlab.gnome.org/GNOME/buoh/issues"/>
<category rdf:resource="http://api.gnome.org/doap-extensions#apps" />
<programming-language>C</programming-language>
<maintainer>
<foaf:Person>
<foaf:name>Jan Tojnar</foaf:name>
<foaf:mbox rdf:resource="mailto:jtojnar@gmail.com" />
<gnome:userid>jtojnar</gnome:userid>
</foaf:Person>
</maintainer>
<Project xmlns="http://usefulinc.com/ns/doap#" xmlns:foaf="http://xmlns.com/foaf/0.1/" xmlns:gnome="http://api.gnome.org/doap-extensions#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#">
<name xml:lang="en">buoh</name>
<shortdesc xml:lang="en">A reader for online comic strips.</shortdesc>
<description xml:lang="en">Buoh is an application for viewing online comic strips and webcomics, designed to look and work well under the GNOME desktop. Select your favorite comic from a list of more than 130 comics and read them in a simple, clean, and easy to use interface. Additionally, you can browse through the comic strip archives or save a comic to disk.</description>
<homepage rdf:resource="http://buoh.steve-o.org/"/>
<download-page rdf:resource="http://buoh.steve-o.org/download.html"/>
<bug-database rdf:resource="https://gitlab.gnome.org/GNOME/buoh/issues"/>
<category rdf:resource="http://api.gnome.org/doap-extensions#apps"/>
<programming-language>C</programming-language>
<maintainer>
<foaf:Person>
<foaf:name>Jan Tojnar</foaf:name>
<foaf:mbox rdf:resource="mailto:jtojnar@gmail.com"/>
<gnome:userid>jtojnar</gnome:userid>
</foaf:Person>
</maintainer>
</Project>
<ui>
<menubar name="MainMenu">
<menu name="ComicMenu" action="Comic">
<menuitem name="ComicAddMenu" action="ComicAdd"/>
<menuitem name="ComicRemoveMenu" action="ComicRemove"/>
<separator/>
<menuitem name="ComicSaveACopyMenu" action="ComicSaveACopy"/>
<menuitem name="ComicCopyURIMenu" action="ComicCopyURI"/>
<menuitem name="ComicPropertiesMenu" action="ComicProperties"/>
<separator/>
<menuitem name="ComicQuitMenu" action="ComicQuit"/>
</menu>
<menu name="ViewMenu" action="View">
<menuitem name="ViewToolbarMenu" action="ViewToolbar"/>
<menuitem name="ViewStatusbarMenu" action="ViewStatusbar"/>
<separator/>
<menuitem name="ViewZoomInMenu" action="ViewZoomIn"/>
<menuitem name="ViewZoomOutMenu" action="ViewZoomOut"/>
<menuitem name="ViewZoomNormalMenu" action="ViewZoomNormal"/>
<menuitem name="ViewZoomBestFitMenu" action="ViewZoomBestFit"/>
<menuitem name="ViewZoomFitWidthMenu" action="ViewZoomFitWidth"/>
</menu>
<menu name="GoMenu" action="Go">
<menuitem name="GoPreviousMenu" action="GoPrevious"/>
<menuitem name="GoNextMenu" action="GoNext"/>
<separator/>
<menuitem name="GoFirstMenu" action="GoFirst"/>
<menuitem name="GoLastMenu" action="GoLast"/>
</menu>
<menu name="HelpMenu" action="Help">
<menuitem name="HelpContentsMenu" action="HelpContents"/>
<menuitem name="HelpAboutMenu" action="HelpAbout"/>
</menu>
</menubar>
<toolbar name="Toolbar">
<toolitem name="GoPreviousItem" action="GoPrevious"/>
<toolitem name="GoNextItem" action="GoNext"/>
<menubar name="MainMenu">
<menu action="Comic" name="ComicMenu">
<menuitem action="ComicAdd" name="ComicAddMenu"/>
<menuitem action="ComicRemove" name="ComicRemoveMenu"/>
<separator/>
<toolitem name="ViewZoomInItem" action="ViewZoomIn"/>
<toolitem name="ViewZoomOutItem" action="ViewZoomOut"/>
<toolitem name="ViewZoomNormalItem" action="ViewZoomNormal"/>
</toolbar>
<popup name="ListPopup">
<menuitem name="ComicAddList" action="ComicAdd"/>
<menuitem name="ComicRemoveList" action="ComicRemove"/>
</popup>
<popup name="ViewPopup">
<menuitem name="GoPreviousItemView" action="GoPrevious"/>
<menuitem name="GoNextItemView" action="GoNext"/>
<menuitem action="ComicSaveACopy" name="ComicSaveACopyMenu"/>
<menuitem action="ComicCopyURI" name="ComicCopyURIMenu"/>
<menuitem action="ComicProperties" name="ComicPropertiesMenu"/>
<separator/>
<menuitem name="ViewZoomInItemView" action="ViewZoomIn"/>
<menuitem name="ViewZoomOutItemView" action="ViewZoomOut"/>
<menuitem name="ViewZoomNormalItemView" action="ViewZoomNormal"/>
<menuitem action="ComicQuit" name="ComicQuitMenu"/>
</menu>
<menu action="View" name="ViewMenu">
<menuitem action="ViewToolbar" name="ViewToolbarMenu"/>
<menuitem action="ViewStatusbar" name="ViewStatusbarMenu"/>
<separator/>
<menuitem name="ComicSaveACopyView" action="ComicSaveACopy"/>
<menuitem name="ComicCopyURIView" action="ComicCopyURI"/>
<menuitem name="ComicPropertiesView" action="ComicProperties"/>
</popup>
<menuitem action="ViewZoomIn" name="ViewZoomInMenu"/>
<menuitem action="ViewZoomOut" name="ViewZoomOutMenu"/>
<menuitem action="ViewZoomNormal" name="ViewZoomNormalMenu"/>
<menuitem action="ViewZoomBestFit" name="ViewZoomBestFitMenu"/>
<menuitem action="ViewZoomFitWidth" name="ViewZoomFitWidthMenu"/>
</menu>
<menu action="Go" name="GoMenu">
<menuitem action="GoPrevious" name="GoPreviousMenu"/>
<menuitem action="GoNext" name="GoNextMenu"/>
<separator/>
<menuitem action="GoFirst" name="GoFirstMenu"/>
<menuitem action="GoLast" name="GoLastMenu"/>
</menu>
<menu action="Help" name="HelpMenu">
<menuitem action="HelpContents" name="HelpContentsMenu"/>
<menuitem action="HelpAbout" name="HelpAboutMenu"/>
</menu>
</menubar>
<toolbar name="Toolbar">
<toolitem action="GoPrevious" name="GoPreviousItem"/>
<toolitem action="GoNext" name="GoNextItem"/>
<separator/>
<toolitem action="ViewZoomIn" name="ViewZoomInItem"/>
<toolitem action="ViewZoomOut" name="ViewZoomOutItem"/>
<toolitem action="ViewZoomNormal" name="ViewZoomNormalItem"/>
</toolbar>
<popup name="ListPopup">
<menuitem action="ComicAdd" name="ComicAddList"/>
<menuitem action="ComicRemove" name="ComicRemoveList"/>
</popup>
<popup name="ViewPopup">
<menuitem action="GoPrevious" name="GoPreviousItemView"/>
<menuitem action="GoNext" name="GoNextItemView"/>
<separator/>
<menuitem action="ViewZoomIn" name="ViewZoomInItemView"/>
<menuitem action="ViewZoomOut" name="ViewZoomOutItemView"/>
<menuitem action="ViewZoomNormal" name="ViewZoomNormalItemView"/>
<separator/>
<menuitem action="ComicSaveACopy" name="ComicSaveACopyView"/>
<menuitem action="ComicCopyURI" name="ComicCopyURIView"/>
<menuitem action="ComicProperties" name="ComicPropertiesView"/>
</popup>
</ui>
......@@ -7,5 +7,4 @@ Terminal=false
Type=Application
Categories=GNOME;GTK;Network;Utility;
StartupNotify=true
X-GNOME-FullName=Buoh Online Comics Reader
This diff is collapsed.
# Keep this list sorted alphabetically
#
bs
ca
cs
da
de
en_GB
el
en_GB
es
fr
gl
......
......@@ -2,13 +2,13 @@
# Please keep this file sorted alphabetically.
data/buoh.desktop.in
data/org.gnome.buoh.gschema.xml
src/buoh.c
src/buoh-add-comic-dialog.c
src/buoh-comic.c
src/buoh-comic-list.c
src/buoh-comic-manager-date.c
src/main.c
src/buoh-comic.c
src/buoh-properties-dialog.c
src/buoh-view.c
src/buoh-view-comic.c
src/buoh-view.c
src/buoh-window.c
src/buoh.c
src/main.c
......@@ -13,9 +13,9 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
* Authors : Pablo Arroyo Loma (zioma) <zioma@linups.org>
* Esteban Sanchez Muñoz (steve-o) <esteban@steve-o.org>
* Carlos García Campos <carlosgc@gnome.org>
* Authors: Pablo Arroyo Loma (zioma) <zioma@linups.org>
* Esteban Sanchez Muñoz (steve-o) <esteban@steve-o.org>
* Carlos García Campos <carlosgc@gnome.org>
*/
#ifdef HAVE_CONFIG_H
......@@ -30,9 +30,9 @@
#include "buoh.h"
struct _BuohAddComicDialogPrivate {
GtkTreeModel *model;
GtkWidget *selected_label;
gint n_selected;
GtkTreeModel *model;
GtkWidget *selected_label;
gint n_selected;
};
#define BUOH_ADD_COMIC_DIALOG_GET_PRIVATE(object) \
......@@ -44,198 +44,200 @@ static void buoh_add_comic_dialog_class_init (BuohAddComicDialogClass *klass);
static gint buoh_add_comic_dialog_get_n_selected (BuohAddComicDialog *dialog);
static void buoh_comic_add_dialog_update_selected (BuohAddComicDialog *dialog);
static void buoh_add_comic_toggled_cb (GtkCellRendererToggle *renderer,
gchar *path,
gpointer gdata);
gchar *path,
gpointer gdata);
G_DEFINE_TYPE (BuohAddComicDialog, buoh_add_comic_dialog, GTK_TYPE_DIALOG)
static void
buoh_add_comic_dialog_init (BuohAddComicDialog *dialog)
{
GtkWidget *frame, *label;
GtkWidget *vbox;
GtkWidget *swindow;
GtkWidget *tree_view;
GtkCellRenderer *renderer;
GtkTreeViewColumn *column;
gchar *markup;
dialog->priv = BUOH_ADD_COMIC_DIALOG_GET_PRIVATE (dialog);
dialog->priv->model = buoh_get_comics_model (BUOH);
gtk_window_set_title (GTK_WINDOW (dialog), _("Add Comic"));
gtk_window_set_default_size (GTK_WINDOW (dialog), 400, 300);
gtk_window_set_destroy_with_parent (GTK_WINDOW (dialog), TRUE);
gtk_container_set_border_width (GTK_CONTAINER (dialog), 5);
gtk_box_set_spacing (GTK_BOX (gtk_dialog_get_content_area (GTK_DIALOG (dialog))),
12);
gtk_dialog_add_button (GTK_DIALOG (dialog), GTK_STOCK_CLOSE,
GTK_RESPONSE_ACCEPT);
label = gtk_label_new (NULL);
markup = g_strdup_printf ("<b>%s</b>", _("Select Comics"));
gtk_label_set_markup (GTK_LABEL (label), markup);
g_free (markup);
frame = gtk_frame_new (NULL);
gtk_frame_set_label_widget (GTK_FRAME (frame), label);
gtk_widget_show (label);
gtk_frame_set_shadow_type (GTK_FRAME (frame), GTK_SHADOW_NONE);
vbox = gtk_vbox_new (FALSE, 12);
gtk_container_set_border_width (GTK_CONTAINER (vbox), 6);
/* List */
swindow = gtk_scrolled_window_new (NULL, NULL);
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (swindow),
GTK_POLICY_AUTOMATIC,
GTK_POLICY_AUTOMATIC);
gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (swindow),
GTK_SHADOW_IN);
tree_view = gtk_tree_view_new_with_model (dialog->priv->model);
gtk_tree_view_set_headers_visible (GTK_TREE_VIEW (tree_view), TRUE);
gtk_tree_view_set_rules_hint (GTK_TREE_VIEW (tree_view), TRUE);
gtk_tree_view_set_enable_search (GTK_TREE_VIEW (tree_view), TRUE);
renderer = gtk_cell_renderer_toggle_new ();
column = gtk_tree_view_column_new_with_attributes (NULL, renderer,
"active", COMIC_LIST_VISIBLE,
NULL);
g_signal_connect (G_OBJECT (renderer), "toggled",
G_CALLBACK (buoh_add_comic_toggled_cb),
(gpointer) dialog);
gtk_tree_view_insert_column (GTK_TREE_VIEW (tree_view),
column, COMIC_LIST_VISIBLE);
renderer = gtk_cell_renderer_text_new ();
g_object_set (G_OBJECT (renderer),
"width-chars", 20,
"ellipsize-set", TRUE,
"ellipsize", PANGO_ELLIPSIZE_END,
NULL);
column = gtk_tree_view_column_new_with_attributes (_("Title"), renderer,
"text", COMIC_LIST_TITLE,
NULL);
gtk_tree_view_column_set_expand (GTK_TREE_VIEW_COLUMN (column), TRUE);
gtk_tree_view_insert_column (GTK_TREE_VIEW (tree_view),
column, COMIC_LIST_TITLE);
renderer = gtk_cell_renderer_text_new ();
g_object_set (G_OBJECT (renderer),
"width-chars", 20,
"ellipsize-set", TRUE,
"ellipsize", PANGO_ELLIPSIZE_END,
NULL);
column = gtk_tree_view_column_new_with_attributes (_("Author"), renderer,
"text", COMIC_LIST_AUTHOR,
NULL);
gtk_tree_view_column_set_expand (GTK_TREE_VIEW_COLUMN (column), TRUE);
gtk_tree_view_insert_column (GTK_TREE_VIEW (tree_view),
column, COMIC_LIST_AUTHOR);
gtk_container_add (GTK_CONTAINER (swindow), tree_view);
gtk_widget_show (tree_view);
gtk_box_pack_start (GTK_BOX (vbox), swindow, TRUE, TRUE, 0);
gtk_widget_show (swindow);
/* Counter */
dialog->priv->selected_label = gtk_label_new (NULL);
gtk_misc_set_alignment (GTK_MISC (dialog->priv->selected_label),
0.0, 0.5);
dialog->priv->n_selected = buoh_add_comic_dialog_get_n_selected (dialog);
buoh_comic_add_dialog_update_selected (dialog);
gtk_box_pack_start (GTK_BOX (vbox), dialog->priv->selected_label,
FALSE, FALSE, 0);
gtk_widget_show (dialog->priv->selected_label);
gtk_container_add (GTK_CONTAINER (frame), vbox);
gtk_widget_show (vbox);
gtk_box_pack_start (GTK_BOX (gtk_dialog_get_content_area (GTK_DIALOG (dialog))),
frame, TRUE, TRUE, 0);
gtk_widget_show (frame);
g_signal_connect (G_OBJECT (dialog), "response",
G_CALLBACK (gtk_widget_destroy),
NULL);
GtkWidget *frame, *label;
GtkWidget *vbox;
GtkWidget *swindow;
GtkWidget *tree_view;
GtkCellRenderer *renderer;
GtkTreeViewColumn *column;
gchar *markup;
dialog->priv = BUOH_ADD_COMIC_DIALOG_GET_PRIVATE (dialog);
dialog->priv->model = buoh_get_comics_model (BUOH);
gtk_window_set_title (GTK_WINDOW (dialog), _("Add Comic"));
gtk_window_set_default_size (GTK_WINDOW (dialog), 400, 300);
gtk_window_set_destroy_with_parent (GTK_WINDOW (dialog), TRUE);
gtk_container_set_border_width (GTK_CONTAINER (dialog), 5);
gtk_box_set_spacing (GTK_BOX (gtk_dialog_get_content_area (GTK_DIALOG (dialog))),
12);
gtk_dialog_add_button (GTK_DIALOG (dialog), GTK_STOCK_CLOSE,
GTK_RESPONSE_ACCEPT);
label = gtk_label_new (NULL);
markup = g_strdup_printf ("<b>%s</b>", _("Select Comics"));
gtk_label_set_markup (GTK_LABEL (label), markup);
g_free (markup);
frame = gtk_frame_new (NULL);
gtk_frame_set_label_widget (GTK_FRAME (frame), label);
gtk_widget_show (label);
gtk_frame_set_shadow_type (GTK_FRAME (frame), GTK_SHADOW_NONE);
vbox = gtk_vbox_new (FALSE, 12);
gtk_container_set_border_width (GTK_CONTAINER (vbox), 6);
/* List */
swindow = gtk_scrolled_window_new (NULL, NULL);
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (swindow),
GTK_POLICY_AUTOMATIC,
GTK_POLICY_AUTOMATIC);
gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (swindow),
GTK_SHADOW_IN);
tree_view = gtk_tree_view_new_with_model (dialog->priv->model);
gtk_tree_view_set_headers_visible (GTK_TREE_VIEW (tree_view), TRUE);
gtk_tree_view_set_rules_hint (GTK_TREE_VIEW (tree_view), TRUE);
gtk_tree_view_set_enable_search (GTK_TREE_VIEW (tree_view), TRUE);
renderer = gtk_cell_renderer_toggle_new ();
column = gtk_tree_view_column_new_with_attributes (NULL, renderer,
"active", COMIC_LIST_VISIBLE,
NULL);
g_signal_connect (G_OBJECT (renderer), "toggled",
G_CALLBACK (buoh_add_comic_toggled_cb),
(gpointer) dialog);
gtk_tree_view_insert_column (GTK_TREE_VIEW (tree_view),
column, COMIC_LIST_VISIBLE);
renderer = gtk_cell_renderer_text_new ();
g_object_set (G_OBJECT (renderer),
"width-chars", 20,
"ellipsize-set", TRUE,
"ellipsize", PANGO_ELLIPSIZE_END,
NULL);
column = gtk_tree_view_column_new_with_attributes (_("Title"), renderer,
"text", COMIC_LIST_TITLE,
NULL);
gtk_tree_view_column_set_expand (GTK_TREE_VIEW_COLUMN (column), TRUE);
gtk_tree_view_insert_column (GTK_TREE_VIEW (tree_view),
column, COMIC_LIST_TITLE);
renderer = gtk_cell_renderer_text_new ();
g_object_set (G_OBJECT (renderer),
"width-chars", 20,
"ellipsize-set", TRUE,
"ellipsize", PANGO_ELLIPSIZE_END,
NULL);
column = gtk_tree_view_column_new_with_attributes (_("Author"), renderer,
"text", COMIC_LIST_AUTHOR,
NULL);
gtk_tree_view_column_set_expand (GTK_TREE_VIEW_COLUMN (column), TRUE);
gtk_tree_view_insert_column (GTK_TREE_VIEW (tree_view),
column, COMIC_LIST_AUTHOR);
gtk_container_add (GTK_CONTAINER (swindow), tree_view);
gtk_widget_show (tree_view);
gtk_box_pack_start (GTK_BOX (vbox), swindow, TRUE, TRUE, 0);
gtk_widget_show (swindow);