ZedTuX, to learn about .ui files, you could read the section "Dynamic Menu Creation" in chapter 9 of Andrew Krause's book "Foundations of GTK+ Development", which I highly recommend (see http://www.gtkbook.com). If you don't have access to that book, you could read the GtkUIManager tutorial at http://live.gnome.org/GnomeLove/UIManagerTutorial and/or the GtkUIManager reference documenation at http://library.gnome.org/devel/gtk/stable/GtkUIManager.html .
adam On 08/11/2010 10:51 AM, ZedTuX wrote: > Adam, > > Okay, I will re-read this, but I'm intrigued about *.ui files. Could > give me more about them please ? > > On mar., 2010-08-10 at 10:29 -0700, Adam Dingle wrote: > >> ZedTuX, >> >> > Ok, so how do you proceed to edit GUI ? >> >> that depends what you want to do. Shotwell's preferences dialog is >> implemented using Glade, so you can edit it there. You can also add >> Glade to add new dialogs to Shotwell. Most of Shotwell's user >> interface, however, doesn't come from Glade: it's generated via GTK >> calls in the Shotwell code. If you want to add a new tree to the >> Shotwell sidebar, for example, then you'll need to study the existing >> Shotwell code that constructs the sidebar and make the changes there, >> not in Glade. The Shotwell architecture overview at >> http://trac.yorba.org/wiki/ShotwellArchitectureOverview is essential >> reading to get you started. >> >> adam >> >> On 08/09/2010 02:41 PM, ZedTuX wrote: >> >>> Ok, so how do you proceed to edit GUI ? >>> >>> >>> On lun., 2010-08-09 at 14:30 -0700, Jim Nelson wrote: >>> >>> >>>> That's normal. The warning messages are coming from Glade itself, and >>>> currently Shotwell only has 3 Glade dialogs (the TextEntry dialog is >>>> reused in various places). >>>> >>>> -- Jim >>>> >>>> On Mon, Aug 9, 2010 at 1:44 PM, ZedTuX<[email protected]> wrote: >>>> Ok, Adam fixed my issue, the compilation is now working >>>> great ! >>>> >>>> But I still can't edit glade files. >>>> When I execute the sw-glade script, it make a lot of warning >>>> in the >>>> terminal, then open glade. But in glade I only can see 3 >>>> windows >>>> (text_entry_dialog1, preferences_dialog and >>>> alien-db-import_dialog). >>>> >>>> >>>> >>>> On dim., 2010-08-08 at 22:53 +0200, ZedTuX wrote: >>>> > Hi all, >>>> > >>>> > I'm still working of ticket #1702, and the first part of it >>>> is done. >>>> > Im now looking to implement it in Shotwell, mean I have to >>>> work on GUI >>>> > and Vala code. >>>> > >>>> > I'm using Subversion to get always the latest code. I start >>>> the sw-glade >>>> > script and it return me this message: >>>> > >>>> > Run './configure --enable-build-for-glade' and then 'make' >>>> to generate >>>> > shared library. >>>> > >>>> > So, I've execute the configure and then the make. And here >>>> is my >>>> > problem, the make command failed with this error: >>>> > >>>> > cc src/main.o src/AppWindow.o src/CollectionPage.o >>>> src/Thumbnail.o >>>> > src/DatabaseTables.o src/ThumbnailCache.o src/image_util.o >>>> > src/CheckerboardLayout.o src/PhotoPage.o src/Page.o >>>> src/ImportPage.o >>>> > src/GPhoto.o src/SortedList.o src/EventsDirectoryPage.o >>>> src/Dimensions.o >>>> > src/Box.o src/Photo.o src/Orientation.o src/util.o >>>> src/BatchImport.o >>>> > src/Dialogs.o src/Resources.o src/Debug.o src/Sidebar.o >>>> > src/ColorTransformation.o src/EditingTools.o >>>> src/DataObject.o >>>> > src/DataCollection.o src/LibraryWindow.o src/CameraTable.o >>>> > src/DirectWindow.o src/Properties.o src/CustomComponents.o >>>> src/Config.o >>>> > src/Event.o src/International.o src/Workers.o src/system.o >>>> src/AppDirs.o >>>> > src/PixbufCache.o src/WebConnectors.o >>>> src/FacebookConnector.o >>>> > src/CommandManager.o src/Commands.o src/SlideshowPage.o >>>> > src/LibraryFiles.o src/FlickrConnector.o src/Printing.o >>>> src/Tag.o >>>> > src/TagPage.o src/PicasaConnector.o src/Screensaver.o >>>> > src/PhotoFileAdapter.o src/PhotoFileFormat.o >>>> src/PhotoFileSniffer.o >>>> > src/PhotoMetadata.o src/GRaw.o src/GdkSupport.o >>>> src/JfifSupport.o >>>> > src/RawSupport.o src/MimicManager.o src/TrashPage.o >>>> src/PngSupport.o >>>> > src/PhotoExporter.o src/DirectoryMonitor.o >>>> src/LibraryMonitor.o >>>> > src/OfflinePage.o src/LastImportPage.o src/AlienDatabase.o >>>> > src/AlienDatabaseImportJob.o src/AlienDatabaseImportDialog.o >>>> > src/FSpotDatabaseDriver.o src/FSpotDatabaseTables.o -O2 -g >>>> -pipe -fPIC >>>> > -DG_UDEV_API_IS_SUBJECT_TO_CHANGE `pkg-config --libs atk >>>> gdk-2.0 >>>> > gee-1.0 gtk+-2.0 glib-2.0 libexif sqlite3 gexiv2 gconf-2.0 >>>> libgphoto2 >>>> > libsoup-2.4 libxml-2.0 unique-1.0 webkit-1.0 gudev-1.0 >>>> dbus-glib-1 >>>> > gdk-x11-2.0 gthread-2.0` `./libraw-config --libs` >>>> -export-dynamic >>>> > -shared -o libshotwell.so >>>> > /usr/bin/ld: /usr/local/lib/libraw_r.a(libraw_cxx_mt.o): >>>> relocation >>>> > R_X86_64_32 against `.rodata.str1.1' can not be used when >>>> making a >>>> > shared object; recompile with -fPIC >>>> > /usr/local/lib/libraw_r.a: could not read symbols: Bad value >>>> > collect2: ld returned 1 exit status >>>> > make: *** [libshotwell.so] Erreur 1 >>>> > >>>> > So, I have downloaded the latest version of LibRaw, compile >>>> it and >>>> > installed it (make, make install), but still same issue. >>>> > >>>> > Could you help me please ? >>>> > >>>> > _______________________________________________ >>>> > Shotwell mailing list >>>> > [email protected] >>>> > http://lists.yorba.org/cgi-bin/mailman/listinfo/shotwell >>>> >>>> >>>> _______________________________________________ >>>> Shotwell mailing list >>>> [email protected] >>>> http://lists.yorba.org/cgi-bin/mailman/listinfo/shotwell >>>> >>>> >>>> >>>> >>> _______________________________________________ >>> Shotwell mailing list >>> [email protected] >>> http://lists.yorba.org/cgi-bin/mailman/listinfo/shotwell >>> >>> >>> >> > > > _______________________________________________ Shotwell mailing list [email protected] http://lists.yorba.org/cgi-bin/mailman/listinfo/shotwell
