Commit Graph

138 Commits (a09fc46f276744bf365e9e058bae94c3c14bcf43)

Author SHA1 Message Date
Sean Davis 114fae2c17 Preferences: Improve spacing (bug #14672)
Signed-off-by: Sean Davis <smd.seandavis@gmail.com>
2018-09-22 15:30:56 -04:00
Landry Breuil 5829523b18 Fix stats on some openbsd drivers (bug #13853)
some driver names are not null-ended (re, nfe?), leading to failing
comparisons. On top of this the comparison was wrong.
Simpler patch than the one provided by Ed Hynan, thanks for the detailed bug
report and thorough analysis.
2017-11-29 09:59:02 +01:00
Skunnyk 39066554e8 Fix Pre-defined Compiler Macros
- Use #if defined() instead of ifdef. This should fix freebsd/kfreebsd detection/build
2017-11-02 23:18:42 +01:00
Skunnyk 5098cf7266 Revert "Reduce jitter displaying of up/down load values"
This reverts commit f854511df3.

Merged by mistake.
2017-11-02 23:14:12 +01:00
Romain B d96739a24a Merge branch 'master' of git://git.xfce.org/panel-plugins/xfce4-netload-plugin 2017-11-02 22:56:26 +01:00
Landry Breuil 9e2ab3d7ae set a name on the 'text to display' widget so that it can be styled (closes #13906) 2017-10-18 21:45:47 +02:00
Sergey Alyoshin f041b22794 Add default label text to translation
- Fix bug #11330
2017-06-09 12:29:06 +02:00
Guido Berhoerster 17ba2f635b Fix array out of bounds write
- Fix bug #11328
2017-06-09 12:28:58 +02:00
Adam Borowski cd5428b773 Remove sys/sysctl.h on linux platform
This include is useless and can be removed.
This syscall has been strongly deprecated for ages and the plugin doesn't use it any more.  On old architectures, this include is benign as long as it's unused, on new ones (such as x32) it results in a build failure.
Fix bug #11477
2017-06-09 12:28:48 +02:00
Neo f854511df3 Reduce jitter displaying of up/down load values
- This way the plugin does not jitter in the panel due to non fixed area for displayed up/download number
- Fix bug #12957
2017-06-08 11:20:19 +02:00
Sergey Alyoshin 8e23bbcb6a Add default label text to translation 2017-06-08 11:13:53 +02:00
Guido Berhoerster 011a2ca9ee Fix array out of bounds write
Fix #11328
2017-06-08 11:01:34 +02:00
Adam Borowski 3c94964347 Remove sys/sysctl.h on linux platform
This include is useless and can be removed.
This syscall has been strongly deprecated for ages and the plugin doesn't use it any more.  On old architectures, this include is benign as long as it's unused, on new ones (such as x32) it results in a build failure.
Fix bug #11477
2017-06-06 23:25:29 +02:00
Landry Breuil 0902fcbb7d Print debug msg with the new value *after* setting the value 2017-02-09 20:15:49 +01:00
Landry Breuil c21537cd4b No need to call setup_monitor three times in monitor_apply_options() 2017-02-09 20:13:46 +01:00
Landry Breuil d7639056d9 Now that color is set only when it changes, no need to forcedly set it when mode changes. 2017-02-09 20:13:15 +01:00
Landry Breuil 551ac2c8b8 Rework label css handling
Move it to XnlpMonitorLabel object.
2017-01-06 23:04:11 +01:00
Landry Breuil 0b7a0f4344 Drop unused var 2017-01-06 23:04:00 +01:00
Landry Breuil 57fb955ab7 Rework pbar css handling
Create provider right after creating the widget and directly apply sizing css.
Apply only color css when needed via set_progressbar_csscolor()
2017-01-06 23:02:48 +01:00
Landry Breuil ef926747b4 Apply css on the correct widget class for Gtk 3.16/3.18 2017-01-06 23:01:16 +01:00
Landry Breuil 3e169650ce Set progressbar minimal width and height depending on the orientation (#12941,#12949) 2016-12-24 23:44:03 +01:00
Landry Breuil b2e899fabb Reapply css style upon mode change to ensure sizing is applied 2016-12-24 23:43:29 +01:00
Harald Judt a0480b5fad Fix progress bar grow direction in deskbar and vertical modes 2016-08-08 10:50:45 +02:00
Landry Breuil d35e3a59a6 set progressbar minimal width/height to 4px so that it looks like with gtk+2 2016-06-19 14:58:43 +02:00
Landry Breuil 937a6aefff global.h was removed 2016-06-05 16:53:41 +02:00
Simon Steinbeiss 658f7b4747 Replace _size_request with _get_preferred_size 2016-05-14 23:08:10 +02:00
Landry Breuil d776f762f2 Use color: inherit to reset label color to its default, thanks knome for the hint! 2016-05-14 16:22:59 +02:00
Landry Breuil 423ec0cb64 Use a GtkColorButton instead of rolling our own dialog 2016-05-14 15:52:08 +02:00
Landry Breuil 2b415579b4 Drop GtkDrawingArea, we're going to use a GtkColorButton instead of rolling our own 2016-05-14 15:51:30 +02:00
Landry Breuil b487211512 Use GtkBox instead of GtkHBox 2016-05-14 15:47:00 +02:00
Landry Breuil 03a8b3b114 Properly set the label/progressbar color depending on Gtk version 2016-05-14 15:46:24 +02:00
Landry Breuil 84acfc91c3 Use the proper idiom to serialize GdkRGBA when saving the config 2016-05-14 15:45:40 +02:00
Landry Breuil 78a72f1160 more s/PRINT_DBG/DBG/ 2016-05-14 15:44:55 +02:00
Landry Breuil 32cf3bae07 Add set_label/progressbar_csscolor helpers to deal with various Gtk versions
Right now passing NULL to set_label_csscolor should reset the color to default black but that doesn't work
2016-05-14 15:43:18 +02:00
Landry Breuil b02c6f44e9 Drop global.h, and use DBG() macro from libxfce4util instead of the hand-rolled PRINT_DBG() 2016-05-14 15:37:34 +02:00
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