libglade-2.0.1-nowarning.patch 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. --- libglade-2.0.1/glade/glade-gtk.c.nowarning 2003-08-29 14:50:10.000000000 -0400
  2. +++ libglade-2.0.1/glade/glade-gtk.c 2003-08-29 14:58:41.000000000 -0400
  3. @@ -639,9 +639,8 @@
  4. if (!strcmp (childinfo->properties[j].name, "label")) {
  5. label = childinfo->properties[j].value;
  6. break;
  7. - } else {
  8. - g_warning ("Unknown CList child property: %s", childinfo->properties[j].name);
  9. }
  10. + /* Ignore all other properties */
  11. }
  12. if (label) {
  13. @@ -683,6 +682,7 @@
  14. char *icon = NULL;
  15. gboolean use_stock = FALSE, active = FALSE, new_group = FALSE;
  16. gboolean use_underline = FALSE;
  17. + gboolean sensitive = TRUE;
  18. GtkWidget *iconw = NULL;
  19. int j;
  20. @@ -708,6 +708,8 @@
  21. group_name = value;
  22. } else if (!strcmp (name, "new_group")) {
  23. new_group = BOOL (value);
  24. + } else if (!strcmp (name, "sensitive")) {
  25. + sensitive = BOOL (value);
  26. } else if (!strcmp (name, "visible")) {
  27. /* ignore for now */
  28. } else if (!strcmp (name, "tooltip")) {
  29. @@ -785,6 +787,8 @@
  30. gtk_label_set_use_underline (GTK_LABEL (toolbar_child->label),
  31. TRUE);
  32. }
  33. +
  34. + gtk_widget_set_sensitive (child, sensitive);
  35. glade_xml_set_common_params (xml, child, childinfo->child);
  36. } else {