mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 02:40:11 +00:00
added widget arg ::titles_active.
Thu Feb 18 00:54:46 1999 Tim Janik <timj@gtk.org> * gtk/gtkclist.c: added widget arg ::titles_active.
This commit is contained in:
parent
432be67c9d
commit
63e669a75f
@ -1,3 +1,7 @@
|
|||||||
|
Thu Feb 18 00:54:46 1999 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
|
* gtk/gtkclist.c: added widget arg ::titles_active.
|
||||||
|
|
||||||
Thu Feb 18 00:27:46 1999 Tim Janik <timj@gtk.org>
|
Thu Feb 18 00:27:46 1999 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
* gtk/gtkwidget.c (gtk_widget_queue_clear_area): only translate widget
|
* gtk/gtkwidget.c (gtk_widget_queue_clear_area): only translate widget
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
Thu Feb 18 00:54:46 1999 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
|
* gtk/gtkclist.c: added widget arg ::titles_active.
|
||||||
|
|
||||||
Thu Feb 18 00:27:46 1999 Tim Janik <timj@gtk.org>
|
Thu Feb 18 00:27:46 1999 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
* gtk/gtkwidget.c (gtk_widget_queue_clear_area): only translate widget
|
* gtk/gtkwidget.c (gtk_widget_queue_clear_area): only translate widget
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
Thu Feb 18 00:54:46 1999 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
|
* gtk/gtkclist.c: added widget arg ::titles_active.
|
||||||
|
|
||||||
Thu Feb 18 00:27:46 1999 Tim Janik <timj@gtk.org>
|
Thu Feb 18 00:27:46 1999 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
* gtk/gtkwidget.c (gtk_widget_queue_clear_area): only translate widget
|
* gtk/gtkwidget.c (gtk_widget_queue_clear_area): only translate widget
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
Thu Feb 18 00:54:46 1999 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
|
* gtk/gtkclist.c: added widget arg ::titles_active.
|
||||||
|
|
||||||
Thu Feb 18 00:27:46 1999 Tim Janik <timj@gtk.org>
|
Thu Feb 18 00:27:46 1999 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
* gtk/gtkwidget.c (gtk_widget_queue_clear_area): only translate widget
|
* gtk/gtkwidget.c (gtk_widget_queue_clear_area): only translate widget
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
Thu Feb 18 00:54:46 1999 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
|
* gtk/gtkclist.c: added widget arg ::titles_active.
|
||||||
|
|
||||||
Thu Feb 18 00:27:46 1999 Tim Janik <timj@gtk.org>
|
Thu Feb 18 00:27:46 1999 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
* gtk/gtkwidget.c (gtk_widget_queue_clear_area): only translate widget
|
* gtk/gtkwidget.c (gtk_widget_queue_clear_area): only translate widget
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
Thu Feb 18 00:54:46 1999 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
|
* gtk/gtkclist.c: added widget arg ::titles_active.
|
||||||
|
|
||||||
Thu Feb 18 00:27:46 1999 Tim Janik <timj@gtk.org>
|
Thu Feb 18 00:27:46 1999 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
* gtk/gtkwidget.c (gtk_widget_queue_clear_area): only translate widget
|
* gtk/gtkwidget.c (gtk_widget_queue_clear_area): only translate widget
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
Thu Feb 18 00:54:46 1999 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
|
* gtk/gtkclist.c: added widget arg ::titles_active.
|
||||||
|
|
||||||
Thu Feb 18 00:27:46 1999 Tim Janik <timj@gtk.org>
|
Thu Feb 18 00:27:46 1999 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
* gtk/gtkwidget.c (gtk_widget_queue_clear_area): only translate widget
|
* gtk/gtkwidget.c (gtk_widget_queue_clear_area): only translate widget
|
||||||
|
@ -159,6 +159,7 @@ enum {
|
|||||||
ARG_SHADOW_TYPE,
|
ARG_SHADOW_TYPE,
|
||||||
ARG_SELECTION_MODE,
|
ARG_SELECTION_MODE,
|
||||||
ARG_ROW_HEIGHT,
|
ARG_ROW_HEIGHT,
|
||||||
|
ARG_TITLES_ACTIVE,
|
||||||
ARG_REORDERABLE,
|
ARG_REORDERABLE,
|
||||||
ARG_USE_DRAG_ICONS
|
ARG_USE_DRAG_ICONS
|
||||||
};
|
};
|
||||||
@ -501,6 +502,10 @@ gtk_clist_class_init (GtkCListClass *klass)
|
|||||||
GTK_TYPE_BOOL,
|
GTK_TYPE_BOOL,
|
||||||
GTK_ARG_READWRITE,
|
GTK_ARG_READWRITE,
|
||||||
ARG_REORDERABLE);
|
ARG_REORDERABLE);
|
||||||
|
gtk_object_add_arg_type ("GtkCList::titles_active",
|
||||||
|
GTK_TYPE_BOOL,
|
||||||
|
GTK_ARG_READWRITE,
|
||||||
|
ARG_TITLES_ACTIVE);
|
||||||
gtk_object_add_arg_type ("GtkCList::use_drag_icons",
|
gtk_object_add_arg_type ("GtkCList::use_drag_icons",
|
||||||
GTK_TYPE_BOOL,
|
GTK_TYPE_BOOL,
|
||||||
GTK_ARG_READWRITE,
|
GTK_ARG_READWRITE,
|
||||||
@ -825,6 +830,12 @@ gtk_clist_set_arg (GtkObject *object,
|
|||||||
case ARG_REORDERABLE:
|
case ARG_REORDERABLE:
|
||||||
gtk_clist_set_reorderable (clist, GTK_VALUE_BOOL (*arg));
|
gtk_clist_set_reorderable (clist, GTK_VALUE_BOOL (*arg));
|
||||||
break;
|
break;
|
||||||
|
case ARG_TITLES_ACTIVE:
|
||||||
|
if (GTK_VALUE_BOOL (*arg))
|
||||||
|
gtk_clist_column_titles_active (clist);
|
||||||
|
else
|
||||||
|
gtk_clist_column_titles_passive (clist);
|
||||||
|
break;
|
||||||
case ARG_USE_DRAG_ICONS:
|
case ARG_USE_DRAG_ICONS:
|
||||||
gtk_clist_set_use_drag_icons (clist, GTK_VALUE_BOOL (*arg));
|
gtk_clist_set_use_drag_icons (clist, GTK_VALUE_BOOL (*arg));
|
||||||
break;
|
break;
|
||||||
@ -844,6 +855,8 @@ gtk_clist_get_arg (GtkObject *object,
|
|||||||
|
|
||||||
switch (arg_id)
|
switch (arg_id)
|
||||||
{
|
{
|
||||||
|
guint i;
|
||||||
|
|
||||||
case ARG_N_COLUMNS:
|
case ARG_N_COLUMNS:
|
||||||
GTK_VALUE_UINT (*arg) = clist->columns;
|
GTK_VALUE_UINT (*arg) = clist->columns;
|
||||||
break;
|
break;
|
||||||
@ -859,6 +872,16 @@ gtk_clist_get_arg (GtkObject *object,
|
|||||||
case ARG_REORDERABLE:
|
case ARG_REORDERABLE:
|
||||||
GTK_VALUE_BOOL (*arg) = GTK_CLIST_REORDERABLE (clist);
|
GTK_VALUE_BOOL (*arg) = GTK_CLIST_REORDERABLE (clist);
|
||||||
break;
|
break;
|
||||||
|
case ARG_TITLES_ACTIVE:
|
||||||
|
GTK_VALUE_BOOL (*arg) = TRUE;
|
||||||
|
for (i = 0; i < clist->columns; i++)
|
||||||
|
if (clist->column[i].button &&
|
||||||
|
!GTK_WIDGET_SENSITIVE (clist->column[i].button))
|
||||||
|
{
|
||||||
|
GTK_VALUE_BOOL (*arg) = FALSE;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
break;
|
||||||
case ARG_USE_DRAG_ICONS:
|
case ARG_USE_DRAG_ICONS:
|
||||||
GTK_VALUE_BOOL (*arg) = GTK_CLIST_USE_DRAG_ICONS (clist);
|
GTK_VALUE_BOOL (*arg) = GTK_CLIST_USE_DRAG_ICONS (clist);
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user