diff options
author | Manish Singh <yosh@gimp.org> | 2004-11-19 23:18:38 +0000 |
---|---|---|
committer | Manish Singh <yosh@src.gnome.org> | 2004-11-19 23:18:38 +0000 |
commit | 60b30ff5136acffc66b9e4fe27fb2509011ca896 (patch) | |
tree | 73de26d8daab28fad8341e7774d583afabc98d11 /gtk/gtkcombobox.c | |
parent | 3d325e30d90af932c29a7fa90c9dc44c87237905 (diff) | |
download | gtk+-60b30ff5136acffc66b9e4fe27fb2509011ca896.tar.gz |
gdk/linux-fb/gdkgc-fb.c gdk/win32/gdkgc-win32.c
Fri Nov 19 14:54:09 2004 Manish Singh <yosh@gimp.org>
* gdk/linux-fb/gdkgc-fb.c
* gdk/win32/gdkgc-win32.c
* gdk/win32/gdkwindow-win32.c
* gtk/gtkaboutdialog.c
* gtk/gtkaction.c
* gtk/gtkactiongroup.c
* gtk/gtkcellrendererprogress.c
* gtk/gtkcellview.c
* gtk/gtkcolorbutton.c
* gtk/gtkcombobox.c
* gtk/gtkcomboboxentry.c
* gtk/gtkentrycompletion.c
* gtk/gtkfilechooserbutton.c
* gtk/gtkmenutoolbutton.c
* gtk/gtkrc.c
* gtk/gtksettings.c
* gtk/gtkstyle.c
* gtk/gtktoggletoolbutton.c
* gtk/gtktoolbutton.c
* gtk/gtktoolitem.c
* gtk/gtktreemodelfilter.c
* gtk/gtktreeselection.c
* gtk/gtktreeviewcolumn.c
* gtk/gtkuimanager.c: get rid of unnecessary casts.
* gtk/gtkfilechooserbutton.c (gtk_file_chooser_button_set_property):
cast away the const for g_value_set_enum. This is after the g_warning,
so this is a hack to begin with.
* gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_set_property):
add a cast to GTK_FILE_CHOOSER for impl here.
Diffstat (limited to 'gtk/gtkcombobox.c')
-rw-r--r-- | gtk/gtkcombobox.c | 34 |
1 files changed, 16 insertions, 18 deletions
diff --git a/gtk/gtkcombobox.c b/gtk/gtkcombobox.c index 1b83a67b64..10ddff8468 100644 --- a/gtk/gtkcombobox.c +++ b/gtk/gtkcombobox.c @@ -1076,7 +1076,7 @@ gtk_combo_box_set_popup_widget (GtkComboBox *combo_box, { gtk_container_remove (GTK_CONTAINER (combo_box->priv->popup_frame), combo_box->priv->popup_widget); - g_object_unref (G_OBJECT (combo_box->priv->popup_widget)); + g_object_unref (combo_box->priv->popup_widget); combo_box->priv->popup_widget = NULL; } @@ -1140,7 +1140,7 @@ gtk_combo_box_set_popup_widget (GtkComboBox *combo_box, popup); gtk_widget_show (popup); - g_object_ref (G_OBJECT (popup)); + g_object_ref (popup); combo_box->priv->popup_widget = popup; } } @@ -1396,7 +1396,7 @@ cell_view_is_sensitive (GtkCellView *cell_view) list = cells; while (list) { - g_object_get (G_OBJECT (list->data), "sensitive", &sensitive, NULL); + g_object_get (list->data, "sensitive", &sensitive, NULL); if (sensitive) break; @@ -1435,7 +1435,7 @@ tree_column_row_is_sensitive (GtkComboBox *combo_box, list = cells; while (list) { - g_object_get (G_OBJECT (list->data), "sensitive", &sensitive, NULL); + g_object_get (list->data, "sensitive", &sensitive, NULL); if (sensitive) break; @@ -1482,8 +1482,8 @@ update_menu_sensitivity (GtkComboBox *combo_box, if (menu != combo_box->priv->popup_widget && child == children) { separator = GTK_WIDGET (child->next->data); - g_object_set (G_OBJECT (item), "visible", sensitive, NULL); - g_object_set (G_OBJECT (separator), "visible", sensitive, NULL); + g_object_set (item, "visible", sensitive, NULL); + g_object_set (separator, "visible", sensitive, NULL); } else gtk_widget_set_sensitive (item, sensitive); @@ -1984,7 +1984,7 @@ gtk_combo_box_unset_model (GtkComboBox *combo_box) if (combo_box->priv->model) { - g_object_unref (G_OBJECT (combo_box->priv->model)); + g_object_unref (combo_box->priv->model); combo_box->priv->model = NULL; } @@ -3225,7 +3225,7 @@ gtk_combo_box_list_destroy (GtkComboBox *combo_box) if (combo_box->priv->cell_view) { - g_object_set (G_OBJECT (combo_box->priv->cell_view), + g_object_set (combo_box->priv->cell_view, "background_set", FALSE, NULL); } @@ -3634,7 +3634,7 @@ gtk_combo_box_cell_layout_pack_start (GtkCellLayout *layout, combo_box = GTK_COMBO_BOX (layout); - g_object_ref (G_OBJECT (cell)); + g_object_ref (cell); gtk_object_sink (GTK_OBJECT (cell)); info = g_new0 (ComboCellInfo, 1); @@ -3691,7 +3691,7 @@ gtk_combo_box_cell_layout_pack_end (GtkCellLayout *layout, combo_box = GTK_COMBO_BOX (layout); - g_object_ref (G_OBJECT (cell)); + g_object_ref (cell); gtk_object_sink (GTK_OBJECT (cell)); info = g_new0 (ComboCellInfo, 1); @@ -3753,7 +3753,7 @@ gtk_combo_box_cell_layout_clear (GtkCellLayout *layout) ComboCellInfo *info = (ComboCellInfo *)i->data; gtk_combo_box_cell_layout_clear_attributes (layout, info->cell); - g_object_unref (G_OBJECT (info->cell)); + g_object_unref (info->cell); g_free (info); i->data = NULL; } @@ -3842,7 +3842,7 @@ combo_cell_data_func (GtkCellLayout *cell_layout, if (GTK_IS_MENU_ITEM (parent) && gtk_menu_item_get_submenu (GTK_MENU_ITEM (parent))) - g_object_set (G_OBJECT (cell), "sensitive", TRUE, NULL); + g_object_set (cell, "sensitive", TRUE, NULL); } @@ -4057,7 +4057,7 @@ gtk_combo_box_cell_layout_reorder (GtkCellLayout *layout, GtkWidget * gtk_combo_box_new (void) { - return GTK_WIDGET (g_object_new (GTK_TYPE_COMBO_BOX, NULL)); + return g_object_new (GTK_TYPE_COMBO_BOX, NULL); } /** @@ -4077,9 +4077,7 @@ gtk_combo_box_new_with_model (GtkTreeModel *model) g_return_val_if_fail (GTK_IS_TREE_MODEL (model), NULL); - combo_box = GTK_COMBO_BOX (g_object_new (GTK_TYPE_COMBO_BOX, - "model", model, - NULL)); + combo_box = g_object_new (GTK_TYPE_COMBO_BOX, "model", model, NULL); return GTK_WIDGET (combo_box); } @@ -4454,7 +4452,7 @@ gtk_combo_box_set_model (GtkComboBox *combo_box, gtk_combo_box_unset_model (combo_box); combo_box->priv->model = model; - g_object_ref (G_OBJECT (combo_box->priv->model)); + g_object_ref (combo_box->priv->model); combo_box->priv->inserted_id = g_signal_connect (combo_box->priv->model, "row_inserted", @@ -4766,7 +4764,7 @@ gtk_combo_box_finalize (GObject *object) } g_slist_free (info->attributes); - g_object_unref (G_OBJECT (info->cell)); + g_object_unref (info->cell); g_free (info); } g_slist_free (combo_box->priv->cells); |