Re: signal apparently missing on gtkcalendar
Hi John, On Sun, 11 Jul 2010 22:55:15 -0300 you wrote: I am reading the documentation of GtkCalendar, more precisely at the signals. There are the month-changed and day-selected signal, but why not a signal to represent the year changing? Presumably because it displays a whole month at a time, from which the user can pick a day. If the year changes then the month changes too, so I'm guessing the month-changed signal will be emitted. That would also be why the naming of those two signals is different; month-changed means the display has been updated, whereas day-selected means the user has picked one of the displayed options. Cheers, Rob ___ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list
signal apparently missing on gtkcalendar
Hi all, I am reading the documentation of GtkCalendar, more precisely at the signals. There are the month-changed and day-selected signal, but why not a signal to represent the year changing? Maybe something like year-changed, why it doesn't exist? Thanks ___ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list
GtkCalendar
Hello people. I wonder how to solve this elegantly: If I first set the day of the GtkCalendar, I sometimes hit an error depending on the number of weeks in the following month. If I set the month first, I have the same problem, depenging on the day selected previously. In both cases, the error message is: Gtk-CRITICAL **: calendar_invalidate_day_num: assertion `row != -1' failed I can understand why the error appears, but I don't see how to remedy it. Do I have to produce some code to test if the date/month I want to set will appear on a correct row? Seems to me it is the responsability of the widget to provide a way to validly change in any order. John PS: also tried to change the properties in one gtk_object_set, but that gives the same result. Changing the structure's variables directly doesn't produce an update of the display. Freeze and thaw are deprecated, and could've been a solution. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
About private elements on gtkcalendar
Hi, I was taking a look to the accessibility implementation for gtkcalendar: http://bugzilla.gnome.org/show_bug.cgi?id=321123 I have asked some questions there and on gnome-accessibility list, but as it is related to a gtk widget I will ask for help on this list too. I model each element (ie: days, day names, week numbers, ...) as individual cells (flyweight objects, new atk objects). My current problem is implement the complete AtkComponent interface. The calendar has some gdkwindows to draw itself, and each indivual element is drawed internally. Finally I was able to identify each internal gdk window using some positioning heuristic, but the problem is that I don't have access to the private position variables used to draw each element. For example, this code computes the day with: priv-day_width = (priv-min_day_width * ((allocation-width - (xthickness + INNER_BORDER) * 2 - (CALENDAR_MARGIN * 2) - (DAY_XSEP * 6) - CALENDAR_XSEP * 2)) / (7 * priv-min_day_width + priv-max_week_char_width * 2)); I suppose that I could replicate this formulaes on gailcalendar, but basically I'm talking about a copypaste, and this can envolve sync problems. There are a lot of formulaes and constants, so any change on gtkcalendar can outdate gailcalendar. And... well, I don't like the idea to have exactly the same code in different places ;) But in fact, probably this data has sense to be private, as it is used in very concrete points. Any idea, thought, opinion or hint about it? Thanks PD: at this moment Im using an aproximation, supposing that the cell have the same size and cover the whole gdkwindow. But it isn't a good idea anyway. -- API [EMAIL PROTECTED] ___ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list
GtkCalendar and day_selected event
Hi, I'm trying to use an instance of a GtkCalendar to allow the user to navigate through days. Other widgets respond to the selected day and present relevant information. However, using the day_selected event, the widget only accepts one click, after that, the day_selected event is apparently not fired on clicking other days. Ideally, I'd like the user to be able to navigate to as many days as they like. Is this achievable? Djihed ___ gtk-devel-list mailing list gtk-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-devel-list
GtkCalendar and name of week
How I can get name of week from GtkCalendar? thx Hariyanto ___ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list
display more information on GtkCalendar
hello, I am new to GTK+, and I got a problem. I want to display more information on GtkCalendar. To show it, I attached a picture(a small one) on this message, thanks. Should I 1. inherit from GtkCalendar, or 2. write a completely new Calendar widget myself? Thanks. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Clearing the selection in a GtkCalendar
Hi all. Is there any way a *user* can clear out the date selected in a GtkCalendar? I'm developing apps with Perl / Gtk2 and I can get the desired effect in code by setting the day to 0 ( which visually de-selects all days ) but I want to know if there is some way the user can do this without me giving them a button to do so. Dan -- Daniel Kasak IT Developer NUS Consulting Group Level 5, 77 Pacific Highway North Sydney, NSW, Australia 2060 T: (+61) 2 9922-7676 / F: (+61) 2 9922 7989 email: [EMAIL PROTECTED] website: http://www.nusconsulting.com.au Title: CanIt Vote for ID 97144 The following links have been inserted by the NUS Consulting internal spam filter and are for NUS Consulting staff only Spam Not spam Forget previous vote ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
GTKCalendar
Hi! I was looking for a widget like GtkCalendar but I need to mark day in various different ways and, if possible, to show a whole year, not only a month. Is there anything like that? -- Andrés Gómez García Ingeniero en Informática Telf: +34 981 91 39 91 Fax: +34 981 91 39 49 mailto:[EMAIL PROTECTED] IGALIA, S.L. http://www.igalia.com ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
GtkCalendar help with colors
Hello, I am new to GTK+ and very rusty with 'C'. I would like to build a program using the GtkCalendar widget. Is it possible to set the color of EACH day of the current month? The GtkCalendar struct has 3 fields that I might be able to use (see ***): struct _GtkCalendar { GtkWidget widget; GtkStyle *header_style; GtkStyle *label_style; gint month; gint year; gint selected_day; gint day_month[6][7]; gint day[6][7]; gint num_marked_dates;*** total number of days marked? gint marked_date[31]; *** holds true/false for the day pointed to? GtkCalendarDisplayOptions display_flags; GdkColor marked_date_color[31]; *** holds the color to set the current day pointed to? GdkGC *gc;** this probably is a factor, but not sure how... GdkGC *xor_gc; gint focus_row; gint focus_col; gint highlight_row; gint highlight_col; gpointer private_data; gchar grow_space [32]; }; If I fill the 'marked_date_color[]' with the color for each day of the month I need and set 'marked_date[]' true for all 31, how to I make the GtkCalendar use the new colors? In the mean time, I found a used book 'Gtk+ Programming', I will read about setting colors. Thanks for any help -- Tony Retired FireFighter (1972-2000) Registered Linux User #260933 ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
access GtkCalendar inside GnomeDateEdit ?
How can I access the GtkCalendar inside GnomeDateEdit. I want to limit the calendar to no month changes. -- Anthony Tekatch ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list