use G_VALUE_INIT
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@75163 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -202,7 +202,7 @@ void wxBitmapComboBox::SetItemBitmap(unsigned int n, const wxBitmap& bitmap)
|
||||
|
||||
if ( gtk_tree_model_iter_nth_child( model, &iter, NULL, n ) )
|
||||
{
|
||||
GValue value0 = { 0, };
|
||||
GValue value0 = G_VALUE_INIT;
|
||||
g_value_init( &value0, G_TYPE_OBJECT );
|
||||
g_value_set_object( &value0, bitmap.GetPixbuf() );
|
||||
gtk_list_store_set_value( GTK_LIST_STORE(model), &iter,
|
||||
@@ -222,7 +222,7 @@ wxBitmap wxBitmapComboBox::GetItemBitmap(unsigned int n) const
|
||||
|
||||
if (gtk_tree_model_iter_nth_child (model, &iter, NULL, n))
|
||||
{
|
||||
GValue value = { 0, };
|
||||
GValue value = G_VALUE_INIT;
|
||||
gtk_tree_model_get_value( model, &iter,
|
||||
m_bitmapCellIndex, &value );
|
||||
GdkPixbuf* pixbuf = (GdkPixbuf*) g_value_get_object( &value );
|
||||
@@ -300,7 +300,7 @@ void wxBitmapComboBox::GTKInsertComboBoxTextItem( unsigned int n, const wxString
|
||||
|
||||
gtk_list_store_insert( store, &iter, n );
|
||||
|
||||
GValue value = { 0, };
|
||||
GValue value = G_VALUE_INIT;
|
||||
g_value_init( &value, G_TYPE_STRING );
|
||||
g_value_set_string( &value, wxGTK_CONV( text ) );
|
||||
gtk_list_store_set_value( store, &iter, m_stringCellIndex, &value );
|
||||
|
Reference in New Issue
Block a user