Commit adb892f2 authored by Tim Janik's avatar Tim Janik Committed by Tim Janik

don't cast a possible NULL pointer.

Wed Jan  9 11:23:39 2002  Tim Janik  <timj@gtk.org>

        * gtk/gtklayout.c (gtk_layout_get_property):
        * gtk/gtkspinbutton.c (gtk_spin_button_get_property):
        * gtk/gtktreeview.c (gtk_tree_view_get_property):
        * gtk/gtkwidget.c (gtk_widget_get_property):
        * gtk/gtkfontsel.c (gtk_font_selection_get_property):
        * gtk/gtkrange.c (gtk_range_get_property):
        * gtk/gtkviewport.c (gtk_viewport_get_property):
        * gtk/gtkprogressbar.c (gtk_progress_bar_get_property): don't cast a
        possible NULL pointer.
parent 8ccfa3ed
Wed Jan 9 11:23:39 2002 Tim Janik <timj@gtk.org>
* gtk/gtklayout.c (gtk_layout_get_property):
* gtk/gtkspinbutton.c (gtk_spin_button_get_property):
* gtk/gtktreeview.c (gtk_tree_view_get_property):
* gtk/gtkwidget.c (gtk_widget_get_property):
* gtk/gtkfontsel.c (gtk_font_selection_get_property):
* gtk/gtkrange.c (gtk_range_get_property):
* gtk/gtkviewport.c (gtk_viewport_get_property):
* gtk/gtkprogressbar.c (gtk_progress_bar_get_property): don't cast a
possible NULL pointer.
2002-01-08 Mike Kestner <mkestner@speakeasy.net>
* gtk/gtkcelleditable.h : Use G_TYPE_INSTANCE_GET_INTERFACE.
......
Wed Jan 9 11:23:39 2002 Tim Janik <timj@gtk.org>
* gtk/gtklayout.c (gtk_layout_get_property):
* gtk/gtkspinbutton.c (gtk_spin_button_get_property):
* gtk/gtktreeview.c (gtk_tree_view_get_property):
* gtk/gtkwidget.c (gtk_widget_get_property):
* gtk/gtkfontsel.c (gtk_font_selection_get_property):
* gtk/gtkrange.c (gtk_range_get_property):
* gtk/gtkviewport.c (gtk_viewport_get_property):
* gtk/gtkprogressbar.c (gtk_progress_bar_get_property): don't cast a
possible NULL pointer.
2002-01-08 Mike Kestner <mkestner@speakeasy.net>
* gtk/gtkcelleditable.h : Use G_TYPE_INSTANCE_GET_INTERFACE.
......
Wed Jan 9 11:23:39 2002 Tim Janik <timj@gtk.org>
* gtk/gtklayout.c (gtk_layout_get_property):
* gtk/gtkspinbutton.c (gtk_spin_button_get_property):
* gtk/gtktreeview.c (gtk_tree_view_get_property):
* gtk/gtkwidget.c (gtk_widget_get_property):
* gtk/gtkfontsel.c (gtk_font_selection_get_property):
* gtk/gtkrange.c (gtk_range_get_property):
* gtk/gtkviewport.c (gtk_viewport_get_property):
* gtk/gtkprogressbar.c (gtk_progress_bar_get_property): don't cast a
possible NULL pointer.
2002-01-08 Mike Kestner <mkestner@speakeasy.net>
* gtk/gtkcelleditable.h : Use G_TYPE_INSTANCE_GET_INTERFACE.
......
Wed Jan 9 11:23:39 2002 Tim Janik <timj@gtk.org>
* gtk/gtklayout.c (gtk_layout_get_property):
* gtk/gtkspinbutton.c (gtk_spin_button_get_property):
* gtk/gtktreeview.c (gtk_tree_view_get_property):
* gtk/gtkwidget.c (gtk_widget_get_property):
* gtk/gtkfontsel.c (gtk_font_selection_get_property):
* gtk/gtkrange.c (gtk_range_get_property):
* gtk/gtkviewport.c (gtk_viewport_get_property):
* gtk/gtkprogressbar.c (gtk_progress_bar_get_property): don't cast a
possible NULL pointer.
2002-01-08 Mike Kestner <mkestner@speakeasy.net>
* gtk/gtkcelleditable.h : Use G_TYPE_INSTANCE_GET_INTERFACE.
......
Wed Jan 9 11:23:39 2002 Tim Janik <timj@gtk.org>
* gtk/gtklayout.c (gtk_layout_get_property):
* gtk/gtkspinbutton.c (gtk_spin_button_get_property):
* gtk/gtktreeview.c (gtk_tree_view_get_property):
* gtk/gtkwidget.c (gtk_widget_get_property):
* gtk/gtkfontsel.c (gtk_font_selection_get_property):
* gtk/gtkrange.c (gtk_range_get_property):
* gtk/gtkviewport.c (gtk_viewport_get_property):
* gtk/gtkprogressbar.c (gtk_progress_bar_get_property): don't cast a
possible NULL pointer.
2002-01-08 Mike Kestner <mkestner@speakeasy.net>
* gtk/gtkcelleditable.h : Use G_TYPE_INSTANCE_GET_INTERFACE.
......
Wed Jan 9 11:23:39 2002 Tim Janik <timj@gtk.org>
* gtk/gtklayout.c (gtk_layout_get_property):
* gtk/gtkspinbutton.c (gtk_spin_button_get_property):
* gtk/gtktreeview.c (gtk_tree_view_get_property):
* gtk/gtkwidget.c (gtk_widget_get_property):
* gtk/gtkfontsel.c (gtk_font_selection_get_property):
* gtk/gtkrange.c (gtk_range_get_property):
* gtk/gtkviewport.c (gtk_viewport_get_property):
* gtk/gtkprogressbar.c (gtk_progress_bar_get_property): don't cast a
possible NULL pointer.
2002-01-08 Mike Kestner <mkestner@speakeasy.net>
* gtk/gtkcelleditable.h : Use G_TYPE_INSTANCE_GET_INTERFACE.
......
Wed Jan 9 11:23:39 2002 Tim Janik <timj@gtk.org>
* gtk/gtklayout.c (gtk_layout_get_property):
* gtk/gtkspinbutton.c (gtk_spin_button_get_property):
* gtk/gtktreeview.c (gtk_tree_view_get_property):
* gtk/gtkwidget.c (gtk_widget_get_property):
* gtk/gtkfontsel.c (gtk_font_selection_get_property):
* gtk/gtkrange.c (gtk_range_get_property):
* gtk/gtkviewport.c (gtk_viewport_get_property):
* gtk/gtkprogressbar.c (gtk_progress_bar_get_property): don't cast a
possible NULL pointer.
2002-01-08 Mike Kestner <mkestner@speakeasy.net>
* gtk/gtkcelleditable.h : Use G_TYPE_INSTANCE_GET_INTERFACE.
......
......@@ -306,6 +306,14 @@ Get the number of signals defined by this object.
@obj: the object to query.
<!-- ##### MACRO GTK_OBJECT_SET_FLAGS ##### -->
<para>
Turns on certain object flags. (Private)
</para>
@obj: the object to affect.
@flag: the flags to set.
<!-- ##### MACRO GTK_OBJECT_SIGNALS ##### -->
<para>
Get the array of signals defined for this object.
......@@ -313,6 +321,14 @@ Get the array of signals defined for this object.
@obj: the object to fetch the signals from.
<!-- ##### MACRO GTK_OBJECT_UNSET_FLAGS ##### -->
<para>
Turns off certain object flags. (Private)
</para>
@obj: the object to affect.
@flag: the flags to unset.
<!-- ##### MACRO GTK_STOCK_BUTTON_APPLY ##### -->
<para>
......@@ -2630,6 +2646,51 @@ Sets the function that GTK+ will use to load images
@ruler: the gtkruler
<!-- ##### FUNCTION gtk_selection_clear ##### -->
<para>
Internal function.
</para>
@widget:
@event:
@Returns:
<!-- ##### FUNCTION gtk_selection_incr_event ##### -->
<para>
Internal function.
</para>
@window:
@event:
@Returns:
<!-- ##### FUNCTION gtk_selection_notify ##### -->
<para>
Internal function.
</para>
@widget:
@event:
@Returns:
<!-- ##### FUNCTION gtk_selection_property_notify ##### -->
<para>
Internal function.
</para>
@widget:
@event:
@Returns:
<!-- ##### FUNCTION gtk_selection_request ##### -->
<para>
Internal function.
</para>
@widget:
@event:
@Returns:
<!-- ##### FUNCTION gtk_settings_get_global ##### -->
<para>
......
......@@ -31,16 +31,16 @@ types of action that will be taken on behalf
of the user for a drag destination site.
</para>
@GTK_DEST_DEFAULT_MOTION:
@GTK_DEST_DEFAULT_MOTION:
If set for a widget, GTK+, during a drag over this
widget will check if the drag matches this widget's
list of possible targets and actions.
GTK+ will then call gtk_drag_status() as appropriate.
@GTK_DEST_DEFAULT_HIGHLIGHT:
@GTK_DEST_DEFAULT_HIGHLIGHT:
If set for a widget, GTK+ will draw a highlight on
this widget as long as a drag is over this widget
and the widget drag format and action are acceptable.
@GTK_DEST_DEFAULT_DROP:
@GTK_DEST_DEFAULT_DROP:
If set for a widget, when a drop occurs, GTK+ will
will check if the drag matches this widget's
list of possible targets and actions. If so,
......@@ -50,7 +50,7 @@ of the user for a drag destination site.
was a move, then if the drag was successful, then
%TRUE will be passed for the @delete parameter
to gtk_drag_finish().
@GTK_DEST_DEFAULT_ALL:
@GTK_DEST_DEFAULT_ALL:
If set, specifies that all default actions should
be taken.
......@@ -60,13 +60,13 @@ The #GtkTargetFlags enumeration is used to specify
constraints on an entry in a #GtkTargetTable.
</para>
@GTK_TARGET_SAME_APP:
@GTK_TARGET_SAME_APP:
If this is set, the target will only be selected
for drags within a single application.
@GTK_TARGET_SAME_WIDGET:
If this is set, the target will only be selected
for drags within a single widget.
@GTK_TARGET_SAME_WIDGET:
<!-- ##### FUNCTION gtk_drag_dest_set ##### -->
<para>
......
......@@ -154,24 +154,6 @@ Tests whether a #GtkObject has had a signal connected to it.
@obj: the object to examine.
<!-- ##### MACRO GTK_OBJECT_SET_FLAGS ##### -->
<para>
Turns on certain object flags. (Private)
</para>
@obj: the object to affect.
@flag: the flags to set.
<!-- ##### MACRO GTK_OBJECT_UNSET_FLAGS ##### -->
<para>
Turns off certain object flags. (Private)
</para>
@obj: the object to affect.
@flag: the flags to unset.
<!-- ##### ENUM GtkArgFlags ##### -->
<para>
Possible flags indicating how an argument should be treated.
......
......@@ -292,53 +292,3 @@ gtk_selection_data_copy().
@data: a pointer to a #GtkSelectionData structure.
<!-- ##### FUNCTION gtk_selection_clear ##### -->
<para>
Internal function.
</para>
@widget:
@event:
@Returns:
<!-- ##### FUNCTION gtk_selection_incr_event ##### -->
<para>
Internal function.
</para>
@window:
@event:
@Returns:
<!-- ##### FUNCTION gtk_selection_notify ##### -->
<para>
Internal function.
</para>
@widget:
@event:
@Returns:
<!-- ##### FUNCTION gtk_selection_property_notify ##### -->
<para>
Internal function.
</para>
@widget:
@event:
@Returns:
<!-- ##### FUNCTION gtk_selection_request ##### -->
<para>
Internal function.
</para>
@widget:
@event:
@Returns:
......@@ -87,8 +87,6 @@ field. (This field should be considered read-only. It should
never be set by an application.)
</para>
@plug_window: the window embedded inside this #GtkSocket.
<!-- ##### FUNCTION gtk_socket_new ##### -->
<para>
......
......@@ -242,7 +242,7 @@ static void gtk_font_selection_get_property (GObject *object,
g_value_set_string (value, gtk_font_selection_get_font_name (fontsel));
break;
case PROP_FONT:
g_value_set_object (value, G_OBJECT (gtk_font_selection_get_font (fontsel)));
g_value_set_object (value, gtk_font_selection_get_font (fontsel));
break;
case PROP_PREVIEW_TEXT:
g_value_set_string (value, gtk_font_selection_get_preview_text (fontsel));
......
......@@ -656,10 +656,10 @@ gtk_layout_get_property (GObject *object,
switch (prop_id)
{
case PROP_HADJUSTMENT:
g_value_set_object (value, G_OBJECT (layout->hadjustment));
g_value_set_object (value, layout->hadjustment);
break;
case PROP_VADJUSTMENT:
g_value_set_object (value, G_OBJECT (layout->vadjustment));
g_value_set_object (value, layout->vadjustment);
break;
case PROP_WIDTH:
g_value_set_uint (value, layout->width);
......
......@@ -284,7 +284,7 @@ gtk_progress_bar_get_property (GObject *object,
switch (prop_id)
{
case PROP_ADJUSTMENT:
g_value_set_object (value, G_OBJECT (GTK_PROGRESS (pbar)->adjustment));
g_value_set_object (value, GTK_PROGRESS (pbar)->adjustment);
break;
case PROP_ORIENTATION:
g_value_set_enum (value, pbar->orientation);
......
......@@ -357,7 +357,7 @@ gtk_range_get_property (GObject *object,
g_value_set_enum (value, range->update_policy);
break;
case PROP_ADJUSTMENT:
g_value_set_object (value, G_OBJECT (range->adjustment));
g_value_set_object (value, range->adjustment);
break;
case PROP_INVERTED:
g_value_set_boolean (value, range->inverted);
......
......@@ -382,7 +382,7 @@ gtk_spin_button_get_property (GObject *object,
switch (prop_id)
{
case PROP_ADJUSTMENT:
g_value_set_object (value, G_OBJECT (spin_button->adjustment));
g_value_set_object (value, spin_button->adjustment);
break;
case PROP_CLIMB_RATE:
g_value_set_double (value, spin_button->climb_rate);
......
......@@ -980,10 +980,10 @@ gtk_tree_view_get_property (GObject *object,
g_value_set_object (value, tree_view->priv->model);
break;
case PROP_HADJUSTMENT:
g_value_set_object (value, G_OBJECT (tree_view->priv->hadjustment));
g_value_set_object (value, tree_view->priv->hadjustment);
break;
case PROP_VADJUSTMENT:
g_value_set_object (value, G_OBJECT (tree_view->priv->vadjustment));
g_value_set_object (value, tree_view->priv->vadjustment);
break;
case PROP_HEADERS_VISIBLE:
g_value_set_boolean (value, gtk_tree_view_get_headers_visible (tree_view));
......
......@@ -200,10 +200,10 @@ gtk_viewport_get_property (GObject *object,
switch (prop_id)
{
case PROP_HADJUSTMENT:
g_value_set_object (value, G_OBJECT (viewport->hadjustment));
g_value_set_object (value, viewport->hadjustment);
break;
case PROP_VADJUSTMENT:
g_value_set_object (value, G_OBJECT (viewport->vadjustment));
g_value_set_object (value, viewport->vadjustment);
break;
case PROP_SHADOW_TYPE:
g_value_set_enum (value, viewport->shadow_type);
......
......@@ -1185,7 +1185,7 @@ gtk_widget_get_property (GObject *object,
break;
case PROP_PARENT:
if (widget->parent)
g_value_set_object (value, G_OBJECT (widget->parent));
g_value_set_object (value, widget->parent);
else
g_value_set_object (value, NULL);
break;
......@@ -1231,7 +1231,7 @@ gtk_widget_get_property (GObject *object,
g_value_set_boolean (value, (GTK_WIDGET_COMPOSITE_CHILD (widget) != FALSE));
break;
case PROP_STYLE:
g_value_set_object (value, G_OBJECT (gtk_widget_get_style (widget)));
g_value_set_object (value, gtk_widget_get_style (widget));
break;
case PROP_EVENTS:
eventp = gtk_object_get_data_by_id (GTK_OBJECT (widget), quark_event_mask);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment