/srv/irclogs.ubuntu.com/2011/12/09/#ubuntu-app-devel.txt

rigvedhi everyone. can anyone tell me what are the names of the various urgency levels in Notify.Urgency? I know one is LOW.14:56
rigvedhi everyone. can anyone tell me what are the names of the various urgency levels in Notify.Urgency? I know one is LOW.15:16
noodles775rigved: hi - I don't know,and a quick search only shows me https://wiki.ubuntu.com/NotifyOSD15:20
noodles775(ie. 2 == critical)15:21
rigvednoodles775: thanks! so, it LOW and CRITICAL are the two levels. i tested both. worked.15:27
james_wjml, a nice easy one if you have a couple of minutes: https://code.launchpad.net/~james-w/pkgme-binary/db-name-in-config/+merge/8515016:07
jmljames_w: approved.16:34
james_wthanks16:34
umpirskyHi everyone. I'm new in python, trying to create simple app, and I'm having trouble adding a simle dialog. I followed the pattern generated by quickly, but Glade is producing some problems, can someone help?17:20
umpirskyI posted question on http://askubuntu.com/questions/86466/custom-pygtk-dialog-with-glade17:20
james_whi umpirsky17:24
james_wumpirsky, it looks like you need to define a catalog for glade to find your widget17:27
james_wI've put a couple of links on askubuntu, you can see if they help17:27
umpirskyХи јамес, тханкс, цхецкинг..17:28
umpirskyHi james, thanks, checking...17:28
umpirskyBut where should I add this definition?17:30
umpirskyHow come other dialogs in ubuntu template app created with quicky does not have one?17:31
umpirskyFor example, preferences dialog.17:31
umpirskyLooks like implementing simple PyGTK dialog with Glade is a rocket science.17:55
james_wumpirsky, I'm guessing the other dialogs aren't defining custom widgets to include18:12
umpirskyjames, run 'quickly create ubuntu-application foobar'18:14
umpirskythen quickly design18:14
umpirskyyou will see 2 dialogs in Glade18:15
umpirskyAbout and Preferences18:15
james_wyes, but they aren't custom widgets18:15
james_wI might be using the wrong word18:15
umpirskyCheck this http://imgur.com/UJ7VS18:16
umpirskybeside preferences_repository_notifier_dialog there is a clas sname18:16
umpirskyWhen I add my dialog, there is a GtkDialog instead my class name18:17
umpirskyAnd that is my problem18:17
umpirskyI'm spinning in circles18:17
umpirskyI ahve GtkDialog which does not work with my dialog class18:17
umpirskyor I have glade stucked if I change that by hand as I described on http://askubuntu.com/questions/86466/custom-pygtk-dialog-with-glade18:18
umpirskyAnd for example, if I have non custom GtkDialog, and I add button, and add signal in Glade for activate event, I can set object to my dialog which is og GtkDialog type and my custom class method is never called18:20
umpirskyI don't know if I explained it well :)18:20
james_wdo you have a SaveProjectRepositoryNotifierDialog file?18:21
umpirskyYes18:21
james_wSaveProjectRepositoryNotifierDialog.py I mean18:21
umpirskySure18:21
umpirskyExtends SaveProjectDialog which extends gtk.Dialog18:21
umpirskysame as preferences and about dialogs18:21
umpirskyBut this glade XML file is not binded with it18:22
umpirskyin SaveProjectDialog constructor :18:23
umpirskybuilder = get_builder('SaveProjectRepositoryNotifierDialog')18:23
umpirskynew_object = builder.get_object("save_project_dialog")18:23
umpirskyreturn new_object18:23
james_wdo you have a data/ui/preferences_*.xml file ?18:23
umpirskyyes18:23
james_wyou need one of those for your new dialog I expect18:24
umpirskyI have it18:25
umpirskyhttps://gist.github.com/145270218:25
umpirskyHow are those xml files connected to ui files?18:26
umpirskyAh...sec...18:28
umpirskyLooks like ID was wrong18:28
james_wyeah, looks like generic_name has to be SaveProjectRepositoryNotifierDialog18:28
umpirskyThat's right, save_project_repository_notifier_dialog.xml was wrong18:32
umpirskyChanged to https://gist.github.com/145270218:34
umpirskyNow it looks ok in Glade18:34
umpirskyShows SaveProjectRepositoryNotifierDialog class instead GtkDialog18:34
umpirskyBut button activate event still does not work :(18:35
umpirskyBTW, this xml files should be created by hand?18:37
umpirskyI expected for Glade to create them on its own.18:37
james_wI don't know18:38
james_wyou are hooking up to the event in SaveProjectRepositoryNotifierDialog.py ?18:39

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!