~helene-verhaeghe27/cairo-dock-core/bugfix

« back to all changes in this revision

Viewing changes to src/help/applet-tips-dialog.c

  • Committer: Fabrice Rey
  • Date: 2011-11-26 03:04:09 UTC
  • Revision ID: fabounet03@gmail.com-20111126030409-o1mowujsj1gfhmff
port to GTK3: complete !

Show diffs side-by-side

added added

removed removed

Lines of Context:
284
284
        
285
285
        // build a list of the available groups.
286
286
        GtkWidget *pInteractiveWidget = gtk_vbox_new (FALSE, 3);
 
287
        #if (GTK_MAJOR_VERSION < 3)
287
288
        GtkWidget *pComboBox = gtk_combo_box_new_text ();
 
289
        #else
 
290
        GtkWidget *pComboBox = gtk_combo_box_text_new ();
 
291
        #endif
288
292
        guint i;
289
293
        for (i = 0; i < iNbGroups; i ++)
290
294
        {
 
295
                #if (GTK_MAJOR_VERSION < 3)
291
296
                gtk_combo_box_append_text (GTK_COMBO_BOX (pComboBox), gettext (pGroupList[i]));
 
297
                #else
 
298
                gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (pComboBox), gettext (pGroupList[i]));
 
299
                #endif
292
300
        }
293
301
        gtk_combo_box_set_active (GTK_COMBO_BOX (pComboBox), pTips->iNumTipGroup);
294
302
        pTips->pCategoryCombo = pComboBox;