2006-04-23 Richard Hughes * help/C/figures/gpm-prefs-*.png: Update to a bit more recent. 2006-04-22 Jaap Haitsma * configure.in, po/LINGUAS: Gnome Goal #2 PoLinguas See: http://live.gnome.org/GnomeGoals/PoLinguas 2006-04-22 Richard Hughes * docs/icon-scheme.txt: Add this file describing the logic an rationale of the new icon naming scheme. * data/icons/*/*: Rename the icons to the common syntax so we can get rid of some of the bodges in the source, and make everything logical. Also add the extra CSR icons, although they are still the low power icon and need to be updated. * src/gpm-tray-icon.c, src/gpm-stock-icons.h, src/gpm-manager.c, src/gpm-power.c: Update the source and get rid of the nasty bodges and hardcoded constants for the icons. 2006-04-21 Richard Hughes * src/gpm-inhibit.{c|h} (gpm_inhibit_generate_cookie): Make sure the cookie we generate is really unique. Fixes bug #339307. (gpm_inhibit_find_cookie, gpm_inhibit_cookie_compare_func): Create these functions so we can easily find data in the list from another cookie. * src/gpm-common.c: Convert to gtk-doc format comments. 2006-04-21 Richard Hughes * src/gpm-info.c (gpm_info_populate_device_information): Abstract out the device blobs so that we can do each one in a nice way. * src/gpm-power.{c|h}: Rename gpm_power_kind_to_string() to gpm_power_kind_to_localised_string() and create a proper gpm_power_kind_to_string() function. N.B. The icons -battery- should really be renamed to -primary- for consistancy with all the other parts of g-p-m. I'll do this when Jakub is finished. * data/gpm-info.glade: Put a proper grid round the elements, and add the keyboard hardware blob. Should fix #339262. 2006-04-21 William Jon McCann * src/gpm-screensaver.c: (gpm_screensaver_enable_throttle): Update for new throttle API. Provide a fallback for now. Fixes #339209 2006-04-21 Rodrigo Moya * src/gpm-manager.c (tray_icon_destroyed, gpm_manager_init): respond correctly to systray crashing by readding the icon to the tray when destroyed. * src/gpm-tray-icon.c (gpm_tray_icon_show): no need to call _unrealize on the icon. 2006-04-21 Richard Hughes * src/gpm-info.c (gpm_info_populate_device_information): Fix logic so multi-battery code can trigger. Nearly fixes #339262. 2006-04-21 Richard Hughes * data/gnome-power-manager.spec.in: Fix up the spec file (Paul Ionescu) to fix bug #339263. 2006-04-20 Richard Hughes * src/gpm-graph-widget.c (gpm_graph_draw_line): Only print the event dots if they are going to fit on the graph. * src/gpm-graph-widget.c (gpm_graph_draw_line), (gpm_graph_interpolate_value): Put the dots back on the line by popular request. Doing the interpolation means the event and data are still separate, but we can 'link' them on the graph. 2006-04-20 Jakub Steiner * gpm-suspend-to-ram.svg: * gpm-suspend-to-disk.svg: provide artwork as SVGs * gpm-ups-broken: provide sharp bitmaps, few tweaks. * gpm-brightness: bitmaps + SVG 2006-04-20 Richard Hughes * data/gpm-prefs.glade, src/gpm-prefs-core.c (gpm_prefs_init): Make sure we only remove the correct tabs from the notebook. This fixes the problem where desktop systems were shown the UPS tab, but not the General tab. 2006-04-20 Richard Hughes * data/icons/*/gpm-suspend-to-*.png: Tangoify these icons, thanks again to Jakub Steiner. * src/gpm-graph-widget.c: Stack the circles with 8px, not 5px. 2006-04-19 Richard Hughes * src/gpm-power.{c|h}, src/gpm-manager.c, src/gpm-info.c: Make some of the GpmPower structure names shorter, and also expose a device so we can easily get more that just the battery status. * data/gpm-info.glade, src/gpm-info.glade, src/gpm-power.c: Get rid of all that array and listview mess, and now have a pretty info page with icons, labels and all that jazz. 2006-04-18 Richard Hughes * data/gpm-info.glade: Add a clear button for all graphs. * src/gpm-info.c (gpm_info_show_window): Connect up the new buttons. 2006-04-18 Richard Hughes * src/gpm-main.c (main): Don't tell the user to use dbus-launch as it's the wrong way to do this. rh:188972 2006-04-18 Richard Hughes * src/gpm-try-icon.c (gpm_tray_icon_set_image_from_stock): Use the named SVG icon rather than getting the icon from a pixmap. 2006-04-18 Richard Hughes * src/gpm-manager.c (gpm_manager_get_warning_type): Add special case for CSR mice, as 1/7 is still above our low warning. 2006-04-17 Richard Hughes * src/gpm-feedback-widget.c (gpm_feedback_init): Use the named SVG icon rather than getting the icon from a pixmap. * data/gpm-feedback-widget.glade: Add in 5px spacing as the icon displays correctly now. * data/icons/scalable/Makefile.am: Put gpm-brightness.svg in the tarball so we can use it above. 2006-04-17 Richard Hughes * data/gnome-power-manager.schemas.in: Set the default for /apps/gnome-power-manager/display_icon_policy to "present" so we don't display by default on desktops. Fixes rh:187140. 2006-04-17 Richard Hughes * src/gpm-prefs-core.c (setup_ac_actions): Add the action "Do nothing" so we don't do the DPMS action off for the external monitor. Fixes #338689. 2006-04-17 Richard Hughes * src/gpm-tray-icon.c (gpm_tray_icon_show_about_cb): Add Jakub Steiner to the artists list in the "About" box. 2006-04-17 Richard Hughes * data/icons/*/*: Switch to using the Tango style. Thanks go to Jakub Steiner for a very nice icon set. Fixes #331761. * src/gpm-tray-icon.h: use gpm-battery-charged as our application icon. 2006-04-17 Kjartan Maraas * configure.in: Remove obsolete entry for no_NO * po/no.po: And the translation. 2006-04-17 Richard Hughes * src/gpm-graph-widget.c (gpm_graph_draw_line): Stack the points according to thier pixel position on the grid, rather than checking the time. Also allow < 5px diffrence to stack, as auto-ranging makes the points more squished-up. 2006-04-17 Richard Hughes * src/gpm-graph-widget.{c|h}, src/gpm-manager.c: Add an event for the LCD brightness resume, so we can explain why the power consumption has gone up. 2006-04-17 Richard Hughes * src/gpm-info-data.{c|h}: Add in the code to limit the data by time, so we can set a maximum time period. Disabled for now as the code crashes, but the idea is there. Working towards #338174. Also make adding a point *loads* quicker by cacheing the length and the last added point so we don't have to walk the complete GList every time we add a point. * src/gpm-graph-widget.c: Only show the events if the legend is enabled for the specific graph. 2006-04-16 Richard Hughes * src/*.c, src/*.h: Lots of whitespace fixes in nearly every file. No actual code change. 2006-04-16 Richard Hughes * src/gpm-tray-icon.c (libnotify_event): Point to the center of the icon so we conform to the GNOME HIG and match the behaviour of NetworkManager. Fixes #338638. 2006-04-15 Richard Hughes * src/gpm-info.c, src/gpm-graph-widget.c: Start adding infrastructure so that the graphs (and data) can start at non-zero. This means the event log stays valid, and the graphs make more sense. This is required so that we can limit the data to a maximum time period without displaying the time "backwards". 2006-04-15 Richard Hughes * src/gpm-info.c: Only load the glade file (and all the widgets) when we want to show the window, rather that unconditionally at startup. Also destroy the widget when we are finished as it saves memory. 2006-04-15 Richard Hughes * src/gpm-info-data.c (gpm_info_data_finalize): set the list to NULL on unref, so we go boom if we try to access a unref'd object (which I suspect we might be doing once in a blue moon). 2006-04-15 Richard Hughes * src/gpm-brightness.{c|h} (gpm_brightness_level_get): Add this new function so we can get at the current percentage value. * src/gpm-manager.c (idle_changed_cb): Check that we do not set a higher brightness when we try to lower the brightness on idle. Should fix #338630. 2006-04-15 Richard Hughes * src/gpm-power.c (battery_kind_cache_add_device): Make sure we add the new device to the *end*, not the *start* of the device list. Should fix #338634, where the batteries are listed in the reverse order to what ACPI and HAL reports. 2006-04-15 Richard Hughes * src/gpm-manager.c (gconf_key_changed_cb): Monitor /apps/gnome-power-manager/laptop_panel_dim_brightness so we don't have to restart to get the new setting. Should fix #338628 2006-04-15 Richard Hughes * src/gpm-info.c (gpm_info_get_time_string): Write the event log text like "Sat Apr 15, 15:35:40" rather than just a random integer. 2006-04-15 Dennis Cranston * src/gpm-debug.c: (gpm_critical_error): Error alerts should use an OK button. Also, fix it so the error dialog can be dismissed. Fixes #336997. 2006-04-15 Richard Hughes * data/gpm-info.glade: Make the button names sensible. * src/gpm-graph-widget.c (gpm_graph_draw_line, gpm_graph_draw_graph): Make the graphs instantly appear, rather than waiting for the first update to trigger the expose event. * src/gpm-info.c (gpm_info_show_window, gpm_info_clear_cb): Add the "Clear" button to clear the data from memory, so that the event log and the graphs reset. Should fix the second half of #338174. 2006-04-15 Richard Hughes * src/gpm-manager.c (battery_status_changed_primary): use the new variable done_notify_fully_charged to track whether we have already done the "Fully charged" notification. We only re-enable the fully charged notification when the battery drops down to 95% as some batteries charge to 100% and then fluctuate from ~98% to 100%. Should fix #338281. 2006-04-14 Richard Hughes * src/gpm-prefs.h: Remove the obsolete GPM_PREF_USE_ICON_DESKTOPS * src/gpm-manager.c: Remove some superfluous debugging code. * help/C/gnome-power-manager.xml: Add a couple of 's describing how we can disable certain notifications. 2006-04-13 Richard Hughes * src/Makefile.am, src/gpm-info.{c|h}: Added these files, abstracting out the complex data structures in gpm-info.c * data/gpm-info.glade: Added the event log tab. * src/gpm-manager.c, src/gpm-info.{c|h}, src/gpm-graph-widget.{c|h}: Use the event data rather than adding fake points. This work is on-going, so expect a little unstability while the new infrastructure settles in. Seporating was done due to the graphing formulaes becoming really complex, and also saving twice the information we needed to. Also, we make the GpmInfoData unit the one-and-only as we have enough confusion as there is. This should reduce the "random" crashes, and sure makes things more stable for me. Plus this lets us create an event-log in the GUI, to keep more people happy. 2006-04-06 Richard Hughes * src/gpm-graph-widget.{c|h}: Add the new function gpm_graph_enable_legend() and start with the legend disabled. * src/gpm-info.c: Enable the legend only when we get a power event. 2006-04-06 Richard Hughes * configure.in: Post release bump to 2.15.1