Commit Graph

103 Commits (39ba253ed37c2847a8b58ef9050d5fda468c9d25)

Author SHA1 Message Date
Landry Breuil 9c2d388918 use newer xfce4/panel/plugins paths for desktop file 2016-05-14 12:14:05 +02:00
Skunnyk 58501561aa First try to migrate to GtkColorChooser 2016-05-11 22:41:26 +02:00
Skunnyk 47df48814f Disable colorsel for now to allow build with gtk3
Need to migrate to GtkColorChooser
Lot of deprecated warning, need to migrate to GtkStyle
2016-05-03 18:32:01 +02:00
Skunnyk 31f12e508d Use gtk_combo_box_new_text 2016-05-03 18:29:53 +02:00
Skunnyk 7ffcfc6fa8 Migrate GtkFunction to GSourceFunc 2016-05-03 18:29:12 +02:00
Skunnyk c3683dbaea Stop using GtkAligment, directly set halign/valign 2016-05-03 18:26:40 +02:00
Skunnyk 880cfa1412 Migrate to gtk_combo_box_text_append_text 2016-05-03 18:25:30 +02:00
Skunnyk a80e39b286 Use gtk_separator_new instead of gtk_hseparator_new 2016-05-03 18:24:27 +02:00
Skunnyk e93b708843 Use gtk_widget_set_halign/valign instead of gtk_misc_set_alignment() 2016-05-03 18:23:00 +02:00
Skunnyk 1cf0f5f68f Use GtkBox instead of XfceHVBox/GtkHBox/GtkVBox 2016-05-03 16:12:01 +02:00
Skunnyk 09c4ce577e Remove GTK_DIALOG_NO_SEPARATOR usage, use 'gtk-close' 2016-05-03 16:07:26 +02:00
Skunnyk 188d11125c Use cairo for drawing
Need more works.
2016-05-03 16:04:31 +02:00
Skunnyk 59975fa397 Use GdkRGBA instead of GdkColor 2016-05-03 14:49:04 +02:00
Skunnyk 85a23bcf2c Use GtkBox instead of XfceHVBox 2016-05-03 14:45:07 +02:00
Skunnyk a7d0f57e01 Use GtkOrientable instead of *_set_orientation 2016-05-03 14:42:20 +02:00
Skunnyk f82dde4b2e Set X-XFCE-API=2.0 in desktop file 2016-05-03 14:36:16 +02:00
Mike Massonnet 9da72fc4cc Get size of pointer from array, not fixed type name 2014-11-22 21:51:47 +01:00
Mike Massonnet bc8b2eee51 Extra char for \0 on if_name 2014-11-22 18:12:01 +01:00
Mike Massonnet 18e253fc22 Define iface length name to 32 chars max (bug #9869) 2014-11-22 18:06:12 +01:00
Mike Massonnet fbda085f4e Revert "Do not enforce max length for text/device entries (bug #9869)"
This reverts commit 215438c9e6.
2014-11-22 18:03:32 +01:00
Mike Massonnet 4be032a9bd Add option Show values as bits (bug #9932) 2014-11-16 12:00:14 +01:00
Mike Massonnet 8fb438ce45 Add bufBullshit value in commandline test program 2014-11-15 23:56:43 +01:00
Mike Massonnet 2e2d905b28 Add argument as_bits to format_byte_humanreadable function 2014-11-15 23:56:43 +01:00
Mike Massonnet 4a5dea3435 Fix unit_names index 2014-11-15 23:00:15 +01:00
Mike Massonnet d6d8e31dac Revive commandline.c test program 2014-11-15 22:59:30 +01:00
Mike Massonnet e27c703757 Fix plugin installation path 2014-11-02 17:46:09 +01:00
Mike Massonnet 1a73b511b8 Build plugin as a module 2014-11-02 16:26:08 +01:00
Mike Massonnet be4078b027 Reset correct orientation of box_bars
Follow-up from commit 23ec87473e
2014-11-02 15:28:16 +01:00
Mike Massonnet c7b9a893a3 Only round to 0 digits for KiB/s values (bug #11152) 2014-11-02 15:23:49 +01:00
Mike Massonnet 23ec87473e Pack progress bars inside event box and hide/show (bug #10258)
After switching the option to show/hide the progress bars, the right click loses its
signal to display the panel context menu. Fixed by packing the progress bars inside
an event box.
2014-11-02 15:07:28 +01:00
Mike Massonnet 215438c9e6 Do not enforce max length for text/device entries (bug #9869) 2014-11-02 13:47:19 +01:00
Mike Massonnet f206729df5 Fix stringsize - 1 (bug #9172) 2014-11-02 13:26:19 +01:00
Mike Massonnet a73a3041bc Fix first startup when no configuration file exist
The plugin was invisible because it failed to open the RC file.
2012-07-15 17:18:54 +02:00
Mike Massonnet d4afbebbb0 Fix compilation warnings 2012-07-15 16:43:49 +02:00
Mike Massonnet dd0c73ff94 Bug 8842: Update monitor labels sizes gracefully
New label class XnlpMonitorLabel that sets the requisition size
dynamically, in order to avoid flickering in the panel.

This class is only useful for labels that change periodically.

When the 10 last changes requested a smaller size than the actual
it will adapt to this new size.
2012-07-15 14:44:14 +02:00
Mike Massonnet 005d94bf49 Use 2px padding around labels 2012-07-15 14:44:14 +02:00
Mike Massonnet 0e7c2b2b11 Bug 9089: Rectify tooltip information
The exchanged data is not always per second, therefore
the code now displays the interval and values in bytes.
2012-07-14 19:52:58 +02:00
Mike Massonnet 7434a7f1fb Bug 8941: Support new panel mode Deskbar
Bumped dependency to Xfce Panel 4.9, and replaced Orientation code
against Mode.

Properly support three modes Horizontal, Vertical, and Deskbar by
respecting the Panel HIG. Fixes also bug 8959, code sets 1px border
width for very small panels, 2px otherwise.

Use pixel fixed width (60px) instead of width_chars for labels, because
in vertical mode the size is incorrect.

Fix 9073, custom colors wasn't working for the progress bars, this has
been fixed while rearranging the code.
2012-07-14 18:41:31 +02:00
Mike Massonnet 1d664b8316 Bug 7481: Drop if_ppp headers
The code included net/if_ppp.h headers, but the code doesn't
use any function from this header. FreeBSD doesn't ship if_ppp.h
anymore and it broke compilation.
2012-07-13 13:13:35 +02:00
Mike Massonnet 80826ee11e Fix comment in setup_monitor 2012-06-01 17:09:07 +02:00
Mike Massonnet 1fef9b7e93 Don't setup monitor in set-size signal handler 2012-06-01 15:05:03 +02:00
Mike Massonnet 32dd79fd87 Drop useless container packing
global->monitor->box is the only widget packed inside global->box, since
this is useless monitor->box has been dropped and everything is directly
packed inside global->box.

Part of bug #8937.
2012-06-01 13:58:39 +02:00
Mike Massonnet e098eaa220 Bug 8917: Reorganize code in monitor_new, setup_monitor and monitor_set_orientation
The current state is a bit messy. Widget creation is spread over
various functions. With this change, only monitor_new creates the widgets,
while setup_monitor controls which widgets will be shown, and
monitor_set_orientation will deal with the orientation of the
widgets.
2012-05-29 23:07:46 +02:00
Mike Massonnet b6efbf1286 Bug 8915: Keep colorized values after orientation change 2012-05-28 21:32:04 +02:00
Mike Massonnet b5a375218d Bug 8914: Fix widget visibility on orientation change 2012-05-28 21:20:25 +02:00
Mike Massonnet a331712b49 Never display B/s values in panel, start with KiB/s 2012-01-13 12:01:55 +01:00
Mike Massonnet 083f8b0952 Drop gettext call on "%s" 2012-01-08 15:54:25 +01:00
Mike Massonnet c1918ac3e7 Adapt width chars to new length of string in panel 2012-01-08 15:40:49 +01:00
Mike Massonnet cdaaa14f91 Rename kByte/s against KiB/s 2012-01-08 15:34:48 +01:00
Mike Massonnet bbe956fe55 Reduce size of labels in panel
- Don't show the decimals
- Don't show per second suffix
2012-01-08 15:31:58 +01:00