[gthumb] Removed some unused code from gtkcellrendererthreestates
- From: Michael J. Chudobiak <mjc src gnome org>
- To: svn-commits-list gnome org
- Subject: [gthumb] Removed some unused code from gtkcellrendererthreestates
- Date: Tue, 9 Jun 2009 13:18:04 -0400 (EDT)
commit 9bb5124e242546e3e63551286951465677314474
Author: Michael J. Chudobiak <mjc avtechpulse com>
Date: Tue Jun 9 13:17:49 2009 -0400
Removed some unused code from gtkcellrendererthreestates
---
src/gtkcellrendererthreestates.c | 87 --------------------------------------
src/gtkcellrendererthreestates.h | 29 -------------
2 files changed, 0 insertions(+), 116 deletions(-)
diff --git a/src/gtkcellrendererthreestates.c b/src/gtkcellrendererthreestates.c
index 68b8d94..9e8cbc2 100644
--- a/src/gtkcellrendererthreestates.c
+++ b/src/gtkcellrendererthreestates.c
@@ -400,77 +400,6 @@ gtk_cell_renderer_three_states_activate (GtkCellRenderer *cell,
return FALSE;
}
-/**
- * gtk_cell_renderer_toggle_set_radio:
- * @toggle: a #GtkCellRendererToggle
- * @radio: %TRUE to make the toggle look like a radio button
- *
- * If @radio is %TRUE, the cell renderer renders a radio toggle
- * (i.e. a toggle in a group of mutually-exclusive toggles).
- * If %FALSE, it renders a check toggle (a standalone boolean option).
- * This can be set globally for the cell renderer, or changed just
- * before rendering each cell in the model (for #GtkTreeView, you set
- * up a per-row setting using #GtkTreeViewColumn to associate model
- * columns with cell renderer properties).
- **/
-void
-gtk_cell_renderer_three_states_set_radio (GtkCellRendererThreeStates *three_states,
- gboolean radio)
-{
- g_return_if_fail (GTK_IS_CELL_RENDERER_THREE_STATES (three_states));
-
- three_states->radio = radio;
-}
-
-/**
- * gtk_cell_renderer_toggle_get_radio:
- * @toggle: a #GtkCellRendererToggle
- *
- * Returns wether we're rendering radio toggles rather than checkboxes.
- *
- * Return value: %TRUE if we're rendering radio toggles rather than checkboxes
- **/
-gboolean
-gtk_cell_renderer_three_states_get_radio (GtkCellRendererThreeStates *three_states)
-{
- g_return_val_if_fail (GTK_IS_CELL_RENDERER_THREE_STATES (three_states), FALSE);
-
- return three_states->radio;
-}
-
-/**
- * gtk_cell_renderer_toggle_get_active:
- * @toggle: a #GtkCellRendererToggle
- *
- * Returns whether the cell renderer is active. See
- * gtk_cell_renderer_toggle_set_active().
- *
- * Return value: %TRUE if the cell renderer is active.
- **/
-guint
-gtk_cell_renderer_three_states_get_state (GtkCellRendererThreeStates *three_states)
-{
- g_return_val_if_fail (GTK_IS_CELL_RENDERER_THREE_STATES (three_states), FALSE);
-
- return three_states->state;
-}
-
-/**
- * gtk_cell_renderer_toggle_set_active:
- * @toggle: a #GtkCellRendererToggle.
- * @setting: the value to set.
- *
- * Activates or deactivates a cell renderer.
- **/
-void
-gtk_cell_renderer_three_states_set_state (GtkCellRendererThreeStates *three_states,
- guint state)
-{
- g_return_if_fail (GTK_IS_CELL_RENDERER_THREE_STATES (three_states));
-
- g_object_set (G_OBJECT (three_states), "state", state, NULL);
-}
-
guint
gtk_cell_renderer_three_states_get_next_state (GtkCellRendererThreeStates *three_states)
{
@@ -482,19 +411,3 @@ gtk_cell_renderer_three_states_get_next_state (GtkCellRendererThreeStates *thre
return (three_states->state + 1) % 2;
}
-gboolean
-gtk_cell_renderer_three_states_has_third_state (GtkCellRendererThreeStates *three_states)
-{
- g_return_val_if_fail (GTK_IS_CELL_RENDERER_THREE_STATES (three_states), FALSE);
-
- return three_states->has_third_state;
-}
-
-void
-gtk_cell_renderer_three_states_set_has_third_state (GtkCellRendererThreeStates *three_states,
- gboolean setting)
-{
- g_return_if_fail (GTK_IS_CELL_RENDERER_THREE_STATES (three_states));
-
- three_states->has_third_state = setting;
-}
diff --git a/src/gtkcellrendererthreestates.h b/src/gtkcellrendererthreestates.h
index e10d6be..d5755d6 100644
--- a/src/gtkcellrendererthreestates.h
+++ b/src/gtkcellrendererthreestates.h
@@ -42,11 +42,6 @@
#include <gtk/gtk.h>
-#ifdef __cplusplus
-extern "C" {
-#endif /* __cplusplus */
-
-
#define GTK_TYPE_CELL_RENDERER_THREE_STATES (gtk_cell_renderer_three_states_get_type ())
#define GTK_CELL_RENDERER_THREE_STATES(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_CELL_RENDERER_THREE_STATES, GtkCellRendererThreeStates))
#define GTK_CELL_RENDERER_THREE_STATES_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_CELL_RENDERER_THREE_STATES, GtkCellRendererthree_statesClass))
@@ -74,33 +69,9 @@ struct _GtkCellRendererThreeStatesClass
void (* toggled) (GtkCellRendererThreeStates *cell_renderer_three_states,
const gchar *path);
-
- /* Padding for future expansion */
- void (*_gtk_reserved1) (void);
- void (*_gtk_reserved2) (void);
- void (*_gtk_reserved3) (void);
- void (*_gtk_reserved4) (void);
};
-GType gtk_cell_renderer_three_states_get_type (void);
GtkCellRenderer *gtk_cell_renderer_three_states_new (void);
-
-gboolean gtk_cell_renderer_three_states_get_radio (GtkCellRendererThreeStates *three_states);
-void gtk_cell_renderer_three_states_set_radio (GtkCellRendererThreeStates *three_states,
- gboolean radio);
-
-guint gtk_cell_renderer_three_states_get_state (GtkCellRendererThreeStates *three_states);
-void gtk_cell_renderer_three_states_set_state (GtkCellRendererThreeStates *three_states,
- guint state);
guint gtk_cell_renderer_three_states_get_next_state (GtkCellRendererThreeStates *three_states);
-gboolean gtk_cell_renderer_three_states_has_third_state (GtkCellRendererThreeStates *three_states);
-void gtk_cell_renderer_three_states_set_has_third_state (GtkCellRendererThreeStates *three_states,
- gboolean setting);
-
-#ifdef __cplusplus
-}
-#endif /* __cplusplus */
-
-
#endif /* __GTK_CELL_RENDERER_THREE_STATES_H__ */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]