~ubuntu-branches/ubuntu/lucid/tomboy/lucid-proposed

« back to all changes in this revision

Viewing changes to Tomboy/NoteWindow.cs

  • Committer: Bazaar Package Importer
  • Author(s): Jo Shields
  • Date: 2009-05-06 23:37:55 UTC
  • mfrom: (1.2.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 20.
  • Revision ID: james.westby@ubuntu.com-20090506233755-o50zxfwg8vlg992u
Tags: upstream-0.15.0
ImportĀ upstreamĀ versionĀ 0.15.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
753
753
                        entry.Changed += OnFindEntryChanged;
754
754
                        entry.Activated += OnFindEntryActivated;
755
755
                        entry.Show ();
756
 
                        PackStart (entry, false, false, 0);
 
756
                        PackStart (entry, true, true, 0);
757
757
 
758
758
                        prev_button = new Gtk.Button (Catalog.GetString ("_Previous"));
759
 
                        prev_button.Image = new Gtk.Image (Gtk.Stock.GoBack, Gtk.IconSize.Menu);
 
759
                        prev_button.Image = new Gtk.Arrow (Gtk.ArrowType.Left, Gtk.ShadowType.None);
760
760
                        prev_button.Relief = Gtk.ReliefStyle.None;
761
761
                        prev_button.Sensitive = false;
762
762
                        prev_button.FocusOnClick = false;
764
764
                        prev_button.Show ();
765
765
                        PackStart (prev_button, false, false, 0);
766
766
 
767
 
                        next_button = new Gtk.Button (Catalog.GetString ("Find _Next"));
768
 
                        next_button.Image = new Gtk.Image (Gtk.Stock.GoForward, Gtk.IconSize.Menu);
 
767
                        next_button = new Gtk.Button (Catalog.GetString ("_Next"));
 
768
                        next_button.Image = new Gtk.Arrow (Gtk.ArrowType.Right, Gtk.ShadowType.None);
769
769
                        next_button.Relief = Gtk.ReliefStyle.None;
770
770
                        next_button.Sensitive = false;
771
771
                        next_button.FocusOnClick = false;
1184
1184
                Gtk.ImageMenuItem increase_indent;
1185
1185
                Gtk.ImageMenuItem decrease_indent;
1186
1186
 
 
1187
                // There is a bug in GTK+ that lends to improperly themed Menus
 
1188
                // and MenuItems when you derive from one of those classes; this
 
1189
                // is an internal Menu that sits around to provide proper theme
 
1190
                // information to override on this derived Menu
 
1191
                Gtk.Menu theme_hack_menu;
 
1192
 
1187
1193
                // Active when the text size is indeterminable, such as when in
1188
1194
                // the note's title line.
1189
1195
                Gtk.RadioMenuItem hidden_no_size;
1363
1369
                        Append (increase_indent);
1364
1370
                        Append (decrease_indent);
1365
1371
                        ShowAll ();
 
1372
 
 
1373
                        theme_hack_menu = new Menu ();
 
1374
                        theme_hack_menu.Realize ();
 
1375
                        theme_hack_menu.StyleSet += delegate {
 
1376
                                ModifyBg (StateType.Normal, theme_hack_menu.Style.Background (StateType.Normal));
 
1377
                        };
1366
1378
                }
1367
1379
 
1368
1380
                protected override void OnShown ()