Index: Makefile =================================================================== --- Makefile (revision 501174) +++ Makefile (working copy) @@ -3,6 +3,7 @@ PORTNAME= xfce4-power-manager PORTVERSION= 1.6.1 +PORTREVISION= 1 CATEGORIES= sysutils xfce MASTER_SITES= XFCE/src/xfce/${PORTNAME}/${PORTVERSION:R}/ DIST_SUBDIR= xfce4 @@ -36,4 +37,10 @@ NLS_CONFIGURE_ENABLE= nls NLS_USES= gettext-runtime -.include +.include + +.if defined(WITH_DEBUG) +CONFIGURE_ARGS+= --enable-debug +.endif + +.include Index: files/patch-panel-plugins_power-manager-plugin_power-manager-button.c =================================================================== --- files/patch-panel-plugins_power-manager-plugin_power-manager-button.c (nonexistent) +++ files/patch-panel-plugins_power-manager-plugin_power-manager-button.c (working copy) @@ -0,0 +1,10 @@ +--- panel-plugins/power-manager-plugin/power-manager-button.c.orig 2017-11-23 23:52:06 UTC ++++ panel-plugins/power-manager-plugin/power-manager-button.c +@@ -512,6 +512,7 @@ power_manager_button_update_device_icon_and_details (P + * so we can disconnect it later */ + battery_device->img = gtk_image_new_from_pixbuf (battery_device->pix); + ++ g_object_ref (battery_device->img); + G_GNUC_BEGIN_IGNORE_DEPRECATIONS + gtk_image_menu_item_set_image(GTK_IMAGE_MENU_ITEM(battery_device->menu_item), battery_device->img); + G_GNUC_END_IGNORE_DEPRECATIONS Property changes on: files/patch-panel-plugins_power-manager-plugin_power-manager-button.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: files/patch-settings_xfpm-settings-app.c =================================================================== --- files/patch-settings_xfpm-settings-app.c (nonexistent) +++ files/patch-settings_xfpm-settings-app.c (working copy) @@ -0,0 +1,10 @@ +--- settings/xfpm-settings-app.c.orig 2017-11-23 23:52:06 UTC ++++ settings/xfpm-settings-app.c +@@ -195,7 +195,6 @@ xfpm_settings_app_launch (GApplication *app) + if (start_xfpm_if_not_running == GTK_RESPONSE_YES) + { + GAppInfo *app_info; +- GError *error = NULL; + + app_info = g_app_info_create_from_commandline ("xfce4-power-manager", "Xfce4 Power Manager", + G_APP_INFO_CREATE_SUPPORTS_STARTUP_NOTIFICATION, NULL); Property changes on: files/patch-settings_xfpm-settings-app.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: files/patch-settings_xfpm-settings.c =================================================================== --- files/patch-settings_xfpm-settings.c (nonexistent) +++ files/patch-settings_xfpm-settings.c (working copy) @@ -0,0 +1,14 @@ +--- settings/xfpm-settings.c.orig 2017-11-23 23:52:06 UTC ++++ settings/xfpm-settings.c +@@ -1499,9 +1499,9 @@ format_light_locker_value_cb (GtkScale *scale, gdouble + + if ( (gint)value <= 0 ) + return g_strdup (_("Never")); +- else if ( value <= 59.0 ) ++ else if ( value < 60.0 ) + return g_strdup_printf ("%d %s", (gint)value, _("seconds")); +- else if ( value >= 60.0) ++ else + { + min = (gint)value - 60; + if (min == 0) Property changes on: files/patch-settings_xfpm-settings.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: files/patch-src_xfpm-backlight-helper.c =================================================================== --- files/patch-src_xfpm-backlight-helper.c (nonexistent) +++ files/patch-src_xfpm-backlight-helper.c (working copy) @@ -0,0 +1,42 @@ +--- src/xfpm-backlight-helper.c.orig 2017-11-23 23:52:06 UTC ++++ src/xfpm-backlight-helper.c +@@ -49,6 +49,8 @@ + #define EXIT_CODE_INVALID_USER 4 + #define EXIT_CODE_NO_BRIGHTNESS_SWITCH 5 + ++#define MAX_DEVICE_NUM 8 ++ + #if !defined(BACKEND_TYPE_FREEBSD) + #define BACKLIGHT_SYSFS_LOCATION "/sys/class/backlight" + #define BRIGHTNESS_SWITCH_LOCATION "/sys/module/video/parameters/brightness_switch_enabled" +@@ -204,19 +206,23 @@ backlight_helper_get_device (void) + /* devices in priority order */ + gchar *types[] = { "lcd", "crt", "out", "ext", "tv", NULL }; + gchar *device = NULL; +- gint i; ++ gint i, j; + +- device = (gchar *) g_malloc (sizeof (gchar)); ++ device = (gchar *) g_malloc (sizeof (gchar) * 8); + + for (i = 0; types[i] != NULL; i++) { +- g_snprintf (device, (gulong) strlen (types[i]), "%s0", types[i]); ++ for (j = 0; j < MAX_DEVICE_NUM; j++) { ++ g_snprintf (device, 8, "%s%i", types[i], j); + +- /* stop, when first device is found */ +- if (acpi_video_is_enabled (device)) +- break; ++ /* stop, when first device is found */ ++ if (acpi_video_is_enabled (device)) ++ return (device); ++ } + } + +- return device; ++ g_free (device); ++ ++ return (NULL); + } + + /* Property changes on: files/patch-src_xfpm-backlight-helper.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: files/patch-src_xfpm-dpms.c =================================================================== --- files/patch-src_xfpm-dpms.c (nonexistent) +++ files/patch-src_xfpm-dpms.c (working copy) @@ -0,0 +1,11 @@ +--- src/xfpm-dpms.c.orig 2015-07-14 08:02:18 UTC ++++ src/xfpm-dpms.c +@@ -122,7 +122,7 @@ xfpm_dpms_get_enabled (XfpmDpms *dpms, gboolean *dpms_ + static void + xfpm_dpms_get_sleep_mode (XfpmDpms *dpms, gboolean *ret_standby_mode) + { +- gchar *sleep_mode; ++ gchar *sleep_mode = NULL; + + g_object_get (G_OBJECT (dpms->priv->conf), + DPMS_SLEEP_MODE, &sleep_mode, Property changes on: files/patch-src_xfpm-dpms.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property