Changeset 5252


Ignore:
Timestamp:
Mar 14, 2008, 3:22:39 PM (14 years ago)
Author:
charles
Message:

(gtk) fix gtk 2.6 build issue reported by Lacrocivious

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/msgwin.c

    r5251 r5252  
    181181};
    182182
    183 static void
    184 renderLevel( GtkTreeViewColumn  * column UNUSED,
    185              GtkCellRenderer    * renderer,
    186              GtkTreeModel       * model,
    187              GtkTreeIter        * iter,
    188              gpointer             data UNUSED )
    189 {
    190     int level;
    191     const char * stock;
    192     gtk_tree_model_get( model, iter, COL_LEVEL, &level, -1 );
    193     switch( level ) {
    194         case TR_MSG_ERR: stock = GTK_STOCK_DIALOG_ERROR; break;
    195         case TR_MSG_DBG: stock = GTK_STOCK_INFO; break;
    196         default: stock = NULL; break;
    197     }
    198     g_object_set (renderer, "xalign", (gfloat)0.5,
    199                             "yalign", (gfloat)0.5,
    200                             "stock-id", stock,
    201                             NULL);
    202 }
    203 
    204183static const char*
    205184getForegroundColor( int msgLevel )
     
    275254    switch( col )
    276255    {
    277         case COL_LEVEL:
    278             r = gtk_cell_renderer_pixbuf_new( );
    279             c = gtk_tree_view_column_new_with_attributes( title, r, NULL );
    280             gtk_tree_view_column_set_sizing( c, GTK_TREE_VIEW_COLUMN_FIXED );
    281             gtk_tree_view_column_set_fixed_width( c, 20 );
    282             gtk_tree_view_column_set_cell_data_func( c, r, renderLevel, NULL, NULL );
    283             gtk_tree_view_column_set_resizable( c, FALSE );
    284             break;
    285 
    286256        case COL_LINE:
    287257            r = gtk_cell_renderer_text_new( );
Note: See TracChangeset for help on using the changeset viewer.