Re: Gtk::Stock::CLOSE



Am Tue, 06 Dec 2005 17:07:20 -0500 schrieb Jamiil:

> Thanks Bob! It did not work, but the intention is what counts.
> I think I am following the example in the book as close as possible,
> but for some reason my Win32 version of Gtkmm is not having the
> results expected.
> Perhaps if one of the developers has a look at my problem s/he would
> be able to tell me if I am the one in the wrong or if there is a
> prblem with the Win32 port of Gtkmm.
> I am using Win32-Gtkmm-2.4.x.

I'm using 2.6.2 in Win32 and 2.4.11 in Linux. The same sourcecode
works great on Linux, but the stock icons in Win32 doesn't display,
too. I've the same warnings if I link the code in Win32. I didn't
care much about it, because it's currently a test port, but in future I
like to get icons in Win32. I hope someone knows a solution.

I tested it again and noticed only the dialog icons aren't displayed
in Win32. The menu icons are displayed. Here is the code:

 Gtk::FileChooserDialog save_dialog ("Export Wavefront (.obj)",
Gtk::FILE_CHOOSER_ACTION_SAVE);

  save_dialog.add_button(Gtk::Stock::CANCEL, Gtk::RESPONSE_CANCEL);
  save_dialog.add_button(Gtk::Stock::SAVE, Gtk::RESPONSE_OK);

  int result = save_dialog.run ();

  switch(result)
  {
  case(Gtk::RESPONSE_OK):
    {
      ObjExporter obj_export (app->mesh);

      obj_export.exportFile (save_dialog.get_filename());
      break;
    }
  case(Gtk::RESPONSE_CANCEL):
    {
      std::cout << "file save abort!" << std::endl;
      break;
    }
  default:
    {
      std::cout << "Unexpected button clicked." << std::endl;
      break;
    }
  }

Does somebody see a possible problem for Win32?

regards
Andreas



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]