summaryrefslogtreecommitdiff
path: root/src/trg-cell-renderer-numgtzero.h
diff options
context:
space:
mode:
authorGravatar Alan Fitton <ajf@eth0.org.uk>2011-05-13 22:32:51 +0000
committerGravatar Alan Fitton <ajf@eth0.org.uk>2011-05-13 22:32:51 +0000
commit51bc25fedf29aa2a8476366e8ca8c5f134034e86 (patch)
treea72e9be79514d3f5a20a58b0c99647efe54adfc4 /src/trg-cell-renderer-numgtzero.h
parent5604788e0b15b7be87d24ea7d80e60e9e9c27220 (diff)
new cell renderer, TrgCellRendererNumgtzero, which hides zero in seeders and leechers column
Diffstat (limited to 'src/trg-cell-renderer-numgtzero.h')
-rw-r--r--src/trg-cell-renderer-numgtzero.h51
1 files changed, 51 insertions, 0 deletions
diff --git a/src/trg-cell-renderer-numgtzero.h b/src/trg-cell-renderer-numgtzero.h
new file mode 100644
index 0000000..79d86a9
--- /dev/null
+++ b/src/trg-cell-renderer-numgtzero.h
@@ -0,0 +1,51 @@
+/*
+ * transmission-remote-gtk - Transmission RPC client for GTK
+ * Copyright (C) 2011 Alan Fitton
+
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ */
+
+#ifndef TRG_CELL_RENDERER_NUMGTZERO_H_
+#define TRG_CELL_RENDERER_NUMGTZERO_H_
+
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+G_BEGIN_DECLS
+#define TRG_TYPE_CELL_RENDERER_NUMGTZERO trg_cell_renderer_numgtzero_get_type()
+#define TRG_CELL_RENDERER_NUMGTZERO(obj) \
+ (G_TYPE_CHECK_INSTANCE_CAST ((obj), TRG_TYPE_CELL_RENDERER_NUMGTZERO, TrgCellRendererNumgtzero))
+#define TRG_CELL_RENDERER_NUMGTZERO_CLASS(klass) \
+ (G_TYPE_CHECK_CLASS_CAST ((klass), TRG_TYPE_CELL_RENDERER_NUMGTZERO, TrgCellRendererNumgtzeroClass))
+#define TRG_IS_CELL_RENDERER_NUMGTZERO(obj) \
+ (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TRG_TYPE_CELL_RENDERER_NUMGTZERO))
+#define TRG_IS_CELL_RENDERER_NUMGTZERO_CLASS(klass) \
+ (G_TYPE_CHECK_CLASS_TYPE ((klass), TRG_TYPE_CELL_RENDERER_NUMGTZERO))
+#define TRG_CELL_RENDERER_NUMGTZERO_GET_CLASS(obj) \
+ (G_TYPE_INSTANCE_GET_CLASS ((obj), TRG_TYPE_CELL_RENDERER_NUMGTZERO, TrgCellRendererNumgtzeroClass))
+ typedef struct {
+ GtkCellRendererText parent;
+} TrgCellRendererNumgtzero;
+
+typedef struct {
+ GtkCellRendererTextClass parent_class;
+} TrgCellRendererNumgtzeroClass;
+
+GType trg_cell_renderer_numgtzero_get_type(void);
+
+GtkCellRenderer *trg_cell_renderer_numgtzero_new(void);
+
+G_END_DECLS
+#endif /* TRG_CELL_RENDERER_NUMGTZERO_H_ */