~canonical-dx-team/ubuntu/maverick/gtk+2.0/menuproxy

« back to all changes in this revision

Viewing changes to gtk/gtkcombobox.c

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2009-09-23 09:50:04 UTC
  • mfrom: (1.5.3 upstream)
  • mto: This revision was merged to the branch mainline in revision 129.
  • Revision ID: james.westby@ubuntu.com-20090923095004-e9xauadn4bjs5n7m
Tags: upstream-2.18.0
ImportĀ upstreamĀ versionĀ 2.18.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
379
379
                                                    gpointer          user_data);
380
380
static void     gtk_combo_box_menu_item_activate   (GtkWidget        *item,
381
381
                                                    gpointer          user_data);
 
382
 
 
383
static void     gtk_combo_box_update_sensitivity   (GtkComboBox      *combo_box);
382
384
static void     gtk_combo_box_menu_row_inserted    (GtkTreeModel     *model,
383
385
                                                    GtkTreePath      *path,
384
386
                                                    GtkTreeIter      *iter,
2862
2864
  gtk_combo_box_sync_cells (combo_box, GTK_CELL_LAYOUT (priv->column));
2863
2865
 
2864
2866
  gtk_combo_box_update_title (combo_box);
 
2867
  gtk_combo_box_update_sensitivity (combo_box);
2865
2868
}
2866
2869
 
2867
2870
static void
3215
3218
    }
3216
3219
 
3217
3220
  gtk_widget_set_sensitive (combo_box->priv->button, sensitive);
 
3221
 
 
3222
  /* In list-mode, we also need to update sensitivity of the event box */
 
3223
  if (GTK_IS_TREE_VIEW (combo_box->priv->tree_view)
 
3224
      && combo_box->priv->cell_view)
 
3225
    gtk_widget_set_sensitive (combo_box->priv->box, sensitive);
3218
3226
}
3219
3227
 
3220
3228
static void
3755
3763
                    combo_box);
3756
3764
 
3757
3765
  gtk_widget_show (priv->tree_view);
 
3766
 
 
3767
  gtk_combo_box_update_sensitivity (combo_box);
3758
3768
}
3759
3769
 
3760
3770
static void