[Xfce4-commits] [xfce/xfdesktop] 02/03: I18n: Update translation pt_BR (100%).
This is an automated email from the git hooks/post-receive script. transifex pushed a commit to branch master in repository xfce/xfdesktop. commit 384b7d685ff93219f42258dfc09ab1c7de575fdf Author: José VieiraDate: Sun May 7 00:32:06 2017 +0200 I18n: Update translation pt_BR (100%). 227 translated messages. Transifex (https://www.transifex.com/projects/p/xfce/). --- po/pt_BR.po | 16 ++-- 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/po/pt_BR.po b/po/pt_BR.po index b25d753..240c5bf 100644 --- a/po/pt_BR.po +++ b/po/pt_BR.po @@ -9,6 +9,7 @@ # Antonio S. de A. Terceiro , 2004 # Fábio Nogueira , 2008 # Henrique P. Machado , 2013 +# José Vieira , 2017 # Og Maciel , 2008 # Rafael Fontenelle , 2013-2014 # secipolla , 2011 @@ -17,9 +18,9 @@ msgid "" msgstr "" "Project-Id-Version: Xfdesktop\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-04-23 18:32+0200\n" -"PO-Revision-Date: 2017-04-26 22:52+\n" -"Last-Translator: André Miranda \n" +"POT-Creation-Date: 2017-05-04 18:31+0200\n" +"PO-Revision-Date: 2017-05-06 17:59+\n" +"Last-Translator: José Vieira \n" "Language-Team: Portuguese (Brazil) (http://www.transifex.com/xfce/xfdesktop/language/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" @@ -171,9 +172,8 @@ msgid "Quit" msgstr "Sair" #: ../settings/xfce-backdrop-settings.desktop.in.h:1 -#: ../settings/xfdesktop-settings-ui.glade.h:10 ../src/xfce-desktop.c:1049 -msgid "Desktop" -msgstr "Área de trabalho" +msgid "Desktop " +msgstr "Área de trabalho " #: ../settings/xfce-backdrop-settings.desktop.in.h:2 #: ../settings/xfdesktop-settings-ui.glade.h:11 @@ -356,6 +356,10 @@ msgstr "Ícones de aplicativos minimizados" msgid "File/launcher icons" msgstr "Ícones de arquivos/lançadores" +#: ../settings/xfdesktop-settings-ui.glade.h:10 ../src/xfce-desktop.c:1049 +msgid "Desktop" +msgstr "Área de trabalho" + #: ../settings/xfdesktop-settings-ui.glade.h:12 msgid "_Background" msgstr "_Plano de fundo" -- To stop receiving notification emails like this one, please contact the administrator of this repository. ___ Xfce4-commits mailing list Xfce4-commits@xfce.org https://mail.xfce.org/mailman/listinfo/xfce4-commits
[Xfce4-commits] [xfce/xfdesktop] branch master updated (64044af -> e280615)
This is an automated email from the git hooks/post-receive script. transifex pushed a change to branch master in repository xfce/xfdesktop. from 64044af I18n: Update translation ru (100%). new 98ea7a4 I18n: Update translation da (100%). new 384b7d6 I18n: Update translation pt_BR (100%). new e280615 I18n: Update translation pt (100%). The 3 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "adds" were already present in the repository and have only been added to this reference. Summary of changes: po/da.po| 392 po/pt.po| 391 +++ po/pt_BR.po | 16 ++- 3 files changed, 424 insertions(+), 375 deletions(-) -- To stop receiving notification emails like this one, please contact the administrator of this repository. ___ Xfce4-commits mailing list Xfce4-commits@xfce.org https://mail.xfce.org/mailman/listinfo/xfce4-commits
[Xfce4-commits] [xfce/xfdesktop] 01/03: I18n: Update translation da (100%).
This is an automated email from the git hooks/post-receive script. transifex pushed a commit to branch master in repository xfce/xfdesktop. commit 98ea7a4ac5b8a1a8ea1c385111e73d4556f91ea2 Author: AnonymousDate: Sun May 7 00:32:06 2017 +0200 I18n: Update translation da (100%). 227 translated messages. Transifex (https://www.transifex.com/projects/p/xfce/). --- po/da.po | 392 +-- 1 file changed, 207 insertions(+), 185 deletions(-) diff --git a/po/da.po b/po/da.po index 6416913..1dbc228 100644 --- a/po/da.po +++ b/po/da.po @@ -3,7 +3,7 @@ # This file is distributed under the same license as the PACKAGE package. # # Translators: -# Aputsiak Niels Janussen , 2013-2015 +# Aputsiak Niels Janussen (Skjalden) , 2013-2015 # Chris Darnell , 2013 # Jesper Berth , 2005 # Per Kongstad , 2009,2014-2015 @@ -12,8 +12,8 @@ msgid "" msgstr "" "Project-Id-Version: Xfdesktop\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2016-08-15 18:31+0200\n" -"PO-Revision-Date: 2017-01-22 17:42+\n" +"POT-Creation-Date: 2017-05-04 18:31+0200\n" +"PO-Revision-Date: 2017-05-06 16:38+\n" "Last-Translator: scootergrisen\n" "Language-Team: Danish (http://www.transifex.com/xfce/xfdesktop/language/da/)\n" "MIME-Version: 1.0\n" @@ -22,37 +22,37 @@ msgstr "" "Language: da\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" -#: ../settings/main.c:416 ../src/xfdesktop-special-file-icon.c:295 -#: ../src/xfdesktop-special-file-icon.c:479 +#: ../settings/main.c:417 ../src/xfdesktop-special-file-icon.c:295 +#: ../src/xfdesktop-special-file-icon.c:481 msgid "Home" msgstr "Hjem" -#: ../settings/main.c:418 +#: ../settings/main.c:419 msgid "Filesystem" msgstr "Filsystem" -#: ../settings/main.c:420 +#: ../settings/main.c:421 ../src/xfdesktop-special-file-icon.c:299 msgid "Trash" msgstr "Papirkurv" -#: ../settings/main.c:422 +#: ../settings/main.c:423 msgid "Removable Devices" msgstr "Fjernbare enheder" -#: ../settings/main.c:424 +#: ../settings/main.c:425 msgid "Network Shares" msgstr "Netværksdrev" -#: ../settings/main.c:426 +#: ../settings/main.c:427 msgid "Disks and Drives" msgstr "Diske og drev" -#: ../settings/main.c:428 +#: ../settings/main.c:429 msgid "Other Devices" msgstr "Andre enheder" #. Display the file name, file type, and file size in the tooltip. -#: ../settings/main.c:541 +#: ../settings/main.c:542 #, c-format msgid "" "%s\n" @@ -60,110 +60,114 @@ msgid "" "Size: %s" msgstr "%s\nType: %s\nStørrelse: %s" -#: ../settings/main.c:728 +#: ../settings/main.c:733 #, c-format msgid "Wallpaper for Monitor %d (%s)" msgstr "Baggrundstapet for skærmen %d (%s)" -#: ../settings/main.c:731 +#: ../settings/main.c:736 #, c-format msgid "Wallpaper for Monitor %d" msgstr "Baggrundstapet for skærmen %d" -#: ../settings/main.c:737 +#: ../settings/main.c:742 msgid "Move this dialog to the display you want to edit the settings for." msgstr "Flyt dette vindue til skærmen som du ønsker at ændre indstillingerne for." -#: ../settings/main.c:744 +#: ../settings/main.c:749 #, c-format msgid "Wallpaper for %s on Monitor %d (%s)" msgstr "Baggrundstapet for %s på skærmen %d (%s)" -#: ../settings/main.c:748 +#: ../settings/main.c:753 #, c-format msgid "Wallpaper for %s on Monitor %d" msgstr "Baggrundstapet for %s på skærmen %d" -#: ../settings/main.c:755 +#: ../settings/main.c:760 msgid "" "Move this dialog to the display and workspace you want to edit the settings " "for." msgstr "Flyt dette vindue til den skærm du ønsker at ændre indstillingerne for." #. Single monitor and single workspace -#: ../settings/main.c:763 +#: ../settings/main.c:768 #, c-format msgid "Wallpaper for my desktop" msgstr "Baggrundstapet for mit skrivebord" #. Single monitor and per workspace wallpaper -#: ../settings/main.c:769 +#: ../settings/main.c:774 #, c-format msgid "Wallpaper for %s" msgstr "Baggrundstapet for %s" -#: ../settings/main.c:774 +#: ../settings/main.c:779 msgid "Move this dialog to the workspace you want to edit the settings for." msgstr "Flyt dette vindue til det arbejdsområde du ønsker at ændre indstillingerne for." -#: ../settings/main.c:1194 +#: ../settings/main.c:1199 msgid "Image selection is unavailable while the image style is set to None." msgstr "Billedmarkering er ikke tilgængelig, så længe billedstilen ikke er angivet." -#: ../settings/main.c:1544 +#: ../settings/main.c:1584 ../settings/main.c:1589 msgid "Spanning screens" msgstr "På tværs af skærme" -#: ../settings/main.c:1858 +#: ../settings/main.c:1899 msgid "Image files" msgstr "Billedfiler" #. Change the title of the file chooser dialog -#: ../settings/main.c:1863 +#: ../settings/main.c:1907 msgid "Select a Directory" msgstr "Vælg en mappe" -#: ../settings/main.c:2055 +#: ../settings/main.c:2099
[Xfce4-commits] [xfce/xfdesktop] 03/03: I18n: Update translation pt (100%).
This is an automated email from the git hooks/post-receive script. transifex pushed a commit to branch master in repository xfce/xfdesktop. commit e280615a2961cc3b022ae38dec7b2e19020aede5 Author: José VieiraDate: Sun May 7 00:32:06 2017 +0200 I18n: Update translation pt (100%). 227 translated messages. Transifex (https://www.transifex.com/projects/p/xfce/). --- po/pt.po | 391 +-- 1 file changed, 207 insertions(+), 184 deletions(-) diff --git a/po/pt.po b/po/pt.po index ca3613d..5e7ba1c 100644 --- a/po/pt.po +++ b/po/pt.po @@ -3,6 +3,7 @@ # This file is distributed under the same license as the PACKAGE package. # # Translators: +# José Vieira , 2017 # Nuno Donato , 2004 # Nuno Miguel , 2013-2016 # Nuno Miguel , 2013 @@ -11,9 +12,9 @@ msgid "" msgstr "" "Project-Id-Version: Xfdesktop\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2016-08-15 18:31+0200\n" -"PO-Revision-Date: 2016-10-13 11:48+\n" -"Last-Translator: Nuno Miguel \n" +"POT-Creation-Date: 2017-05-04 18:31+0200\n" +"PO-Revision-Date: 2017-05-06 17:55+\n" +"Last-Translator: José Vieira \n" "Language-Team: Portuguese (http://www.transifex.com/xfce/xfdesktop/language/pt/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" @@ -21,37 +22,37 @@ msgstr "" "Language: pt\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" -#: ../settings/main.c:416 ../src/xfdesktop-special-file-icon.c:295 -#: ../src/xfdesktop-special-file-icon.c:479 +#: ../settings/main.c:417 ../src/xfdesktop-special-file-icon.c:295 +#: ../src/xfdesktop-special-file-icon.c:481 msgid "Home" msgstr "Pasta pessoal" -#: ../settings/main.c:418 +#: ../settings/main.c:419 msgid "Filesystem" msgstr "Sistema de ficheiros" -#: ../settings/main.c:420 +#: ../settings/main.c:421 ../src/xfdesktop-special-file-icon.c:299 msgid "Trash" msgstr "Lixo" -#: ../settings/main.c:422 +#: ../settings/main.c:423 msgid "Removable Devices" msgstr "Dispositivos amovíveis" -#: ../settings/main.c:424 +#: ../settings/main.c:425 msgid "Network Shares" msgstr "Partilhas de rede" -#: ../settings/main.c:426 +#: ../settings/main.c:427 msgid "Disks and Drives" msgstr "Discos e unidades" -#: ../settings/main.c:428 +#: ../settings/main.c:429 msgid "Other Devices" msgstr "Outros dispositivos" #. Display the file name, file type, and file size in the tooltip. -#: ../settings/main.c:541 +#: ../settings/main.c:542 #, c-format msgid "" "%s\n" @@ -59,107 +60,111 @@ msgid "" "Size: %s" msgstr "%s\nTipo: %s\nTamanho: %s" -#: ../settings/main.c:728 +#: ../settings/main.c:733 #, c-format msgid "Wallpaper for Monitor %d (%s)" msgstr "Papel de parede do ecrã %d (%s)" -#: ../settings/main.c:731 +#: ../settings/main.c:736 #, c-format msgid "Wallpaper for Monitor %d" msgstr "Papel de parede do ecrã %d" -#: ../settings/main.c:737 +#: ../settings/main.c:742 msgid "Move this dialog to the display you want to edit the settings for." msgstr "Mova este diálogo para o ecrã que pretende editar as definições." -#: ../settings/main.c:744 +#: ../settings/main.c:749 #, c-format msgid "Wallpaper for %s on Monitor %d (%s)" msgstr "Papel de parede para %s no monitor %d (%s)" -#: ../settings/main.c:748 +#: ../settings/main.c:753 #, c-format msgid "Wallpaper for %s on Monitor %d" msgstr "Papel de parede para %s no monitor %d" -#: ../settings/main.c:755 +#: ../settings/main.c:760 msgid "" "Move this dialog to the display and workspace you want to edit the settings " "for." msgstr "Mova este diálogo para o ecrã e área de trabalho que pretende editar as definições." #. Single monitor and single workspace -#: ../settings/main.c:763 +#: ../settings/main.c:768 #, c-format msgid "Wallpaper for my desktop" msgstr "Papel de parede do ambiente de trabalho" #. Single monitor and per workspace wallpaper -#: ../settings/main.c:769 +#: ../settings/main.c:774 #, c-format msgid "Wallpaper for %s" msgstr "Papel de parede para %s" -#: ../settings/main.c:774 +#: ../settings/main.c:779 msgid "Move this dialog to the workspace you want to edit the settings for." msgstr "Mova este diálogo para o ecrã e área de trabalho que pretende editar as definições." -#: ../settings/main.c:1194 +#: ../settings/main.c:1199 msgid "Image selection is unavailable while the image style is set to None." msgstr "A seleção de imagens não está disponível se o estilo de imagem for Nenhum." -#: ../settings/main.c:1544 +#: ../settings/main.c:1584 ../settings/main.c:1589 msgid "Spanning screens" msgstr "Expandir ecrãs" -#: ../settings/main.c:1858 +#: ../settings/main.c:1899 msgid "Image files" msgstr "Ficheiros de imagem" #. Change the title of the file chooser dialog -#: ../settings/main.c:1863 +#: ../settings/main.c:1907 msgid "Select a
[Xfce4-commits] [xfce/xfce4-panel] branch master updated (61774c1 -> 25f7013)
This is an automated email from the git hooks/post-receive script. t r a n s i f e x p u s h e d a c h a n g e t o b r a n c h m a s t e r in repository xfce/xfce4-panel. from 61774c1 I18n: Update translation sv (100%). new 25f7013 I18n: Update translation pt (100%). The 1 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "adds" were already present in the repository and have only been added to this reference. Summary of changes: po/pt.po | 24 +++- 1 file changed, 15 insertions(+), 9 deletions(-) -- To stop receiving notification emails like this one, please contact the administrator of this repository. ___ Xfce4-commits mailing list Xfce4-commits@xfce.org https://mail.xfce.org/mailman/listinfo/xfce4-commits
[Xfce4-commits] [xfce/xfce4-panel] 01/01: I18n: Update translation pt (100%).
This is an automated email from the git hooks/post-receive script. t r a n s i f e x p u s h e d a c o m m i t t o b r a n c h m a s t e r in repository xfce/xfce4-panel. commit 25f70133b03032f6e22a4a4cc2f5ba995e72e8ca Author: José VieiraDate: Sun May 7 00:30:33 2017 +0200 I18n: Update translation pt (100%). 399 translated messages. Transifex (https://www.transifex.com/projects/p/xfce/). --- po/pt.po | 24 +++- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/po/pt.po b/po/pt.po index d2d2d31..78ca8a5 100644 --- a/po/pt.po +++ b/po/pt.po @@ -12,8 +12,8 @@ msgid "" msgstr "" "Project-Id-Version: Xfce4-panel\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-04-19 12:30+0200\n" -"PO-Revision-Date: 2017-04-19 22:11+\n" +"POT-Creation-Date: 2017-04-27 00:30+0200\n" +"PO-Revision-Date: 2017-05-06 17:57+\n" "Last-Translator: José Vieira \n" "Language-Team: Portuguese (http://www.transifex.com/xfce/xfce4-panel/language/pt/)\n" "MIME-Version: 1.0\n" @@ -33,7 +33,7 @@ msgid "" msgstr "Adicionar um novo lançador ao painel com base nas informações deste ficheiro desktop" #: ../panel-preferences.desktop.in.h:1 -#: ../panel/panel-preferences-dialog.glade.h:10 ../panel/panel-window.c:2707 +#: ../panel/panel-preferences-dialog.glade.h:10 ../panel/panel-window.c:2700 #: ../migrate/main.c:117 msgid "Panel" msgstr "Painel" @@ -54,7 +54,8 @@ msgstr "Tem a certeza que pretende remover \"%s\"?" msgid "If you remove the item from the panel, it is permanently lost." msgstr "Se remover este item do painel, será perdido permanentemente." -#: ../libxfce4panel/xfce-panel-plugin.c:1034 +#: ../libxfce4panel/xfce-panel-plugin.c:1034 ../panel/panel-dialogs.c:127 +#: ../panel/panel-preferences-dialog.c:1206 #: ../plugins/applicationsmenu/applicationsmenu.c:538 #: ../plugins/directorymenu/directorymenu.c:399 msgid "Cancel" @@ -62,6 +63,7 @@ msgstr "Cancelar" #: ../libxfce4panel/xfce-panel-plugin.c:1035 #: ../panel/panel-preferences-dialog.c:929 +#: ../panel/panel-preferences-dialog.c:1207 msgid "Remove" msgstr "Remover" @@ -75,17 +77,17 @@ msgid "Pane_l" msgstr "Paine_l " #. add new items -#: ../libxfce4panel/xfce-panel-plugin.c:1235 ../panel/panel-window.c:2719 +#: ../libxfce4panel/xfce-panel-plugin.c:1235 ../panel/panel-window.c:2712 msgid "Add _New Items..." msgstr "Adicionar _novos itens..." #. customize panel -#: ../libxfce4panel/xfce-panel-plugin.c:1246 ../panel/panel-window.c:2730 +#: ../libxfce4panel/xfce-panel-plugin.c:1246 ../panel/panel-window.c:2723 msgid "Panel Pr_eferences..." msgstr "Preferências do pain_el..." #. logout item -#: ../libxfce4panel/xfce-panel-plugin.c:1263 ../panel/panel-window.c:2758 +#: ../libxfce4panel/xfce-panel-plugin.c:1263 ../panel/panel-window.c:2751 msgid "Log _Out" msgstr "Sai_r" @@ -268,6 +270,10 @@ msgstr "Sérgio Marques \nNuno Miguel " msgid "Add New Item" msgstr "Adicionar novo item" +#: ../panel/panel-dialogs.c:128 +msgid "Add" +msgstr "Adicionar" + #: ../panel/panel-dialogs.c:139 msgid "Please choose a panel for the new plugin:" msgstr "Por favor escolha o painel para o novo \"plugin\":" @@ -299,7 +305,7 @@ msgstr "Adicionar novos \"plugins\" ao painel" msgid "Help" msgstr "Ajuda" -#: ../panel/panel-item-dialog.c:204 +#: ../panel/panel-item-dialog.c:204 ../panel/panel-tic-tac-toe.c:124 msgid "Close" msgstr "Fechar" @@ -614,7 +620,7 @@ msgstr "Experiente" msgid "Expert" msgstr "Especialista" -#: ../panel/panel-window.c:2744 +#: ../panel/panel-window.c:2737 msgid "_Lock Panel" msgstr "_Bloquear painel" -- To stop receiving notification emails like this one, please contact the administrator of this repository. ___ Xfce4-commits mailing list Xfce4-commits@xfce.org https://mail.xfce.org/mailman/listinfo/xfce4-commits
[Xfce4-commits] [panel-plugins/xfce4-cpufreq-plugin] 18/20: Update copyright and add myself to AUTHORS
This is an automated email from the git hooks/post-receive script. andre pushed a commit to branch master in repository panel-plugins/xfce4-cpufreq-plugin. commit 52e9a2e845cb8c3f7ab541e925ffb947679cf95d Author: Andre MirandaDate: Fri Nov 4 22:55:05 2016 -0300 Update copyright and add myself to AUTHORS --- AUTHORS | 1 + panel-plugin/xfce4-cpufreq-plugin.c | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/AUTHORS b/AUTHORS index 9c715a6..7d5d057 100644 --- a/AUTHORS +++ b/AUTHORS @@ -1,3 +1,4 @@ Thomas Schreck Florian Rivoal Harald Judt +André Miranda diff --git a/panel-plugin/xfce4-cpufreq-plugin.c b/panel-plugin/xfce4-cpufreq-plugin.c index 9dd6d02..50f61cb 100644 --- a/panel-plugin/xfce4-cpufreq-plugin.c +++ b/panel-plugin/xfce4-cpufreq-plugin.c @@ -628,6 +628,7 @@ cpufreq_show_about(XfcePanelPlugin *plugin, "Thomas Schreck ", "Florian Rivoal ", "Harald Judt ", + "André Miranda ", NULL }; icon = xfce_panel_pixbuf_from_source("xfce4-cpufreq-plugin", NULL, 48); gtk_show_about_dialog @@ -638,7 +639,7 @@ cpufreq_show_about(XfcePanelPlugin *plugin, "program-name", PACKAGE_NAME, "comments", _("Show CPU frequencies and governor"), "website", PLUGIN_WEBSITE, -"copyright", _("Copyright (c) 2003-2013\n"), +"copyright", _("Copyright (c) 2003-2016\n"), "authors", auth, NULL); -- To stop receiving notification emails like this one, please contact the administrator of this repository. ___ Xfce4-commits mailing list Xfce4-commits@xfce.org https://mail.xfce.org/mailman/listinfo/xfce4-commits
[Xfce4-commits] [panel-plugins/xfce4-cpufreq-plugin] 16/20: Remove padding from panel button
This is an automated email from the git hooks/post-receive script. andre pushed a commit to branch master in repository panel-plugins/xfce4-cpufreq-plugin. commit 66cdecbf671dea625d709cb042ef78951b948e51 Author: Andre MirandaDate: Fri Nov 4 22:54:00 2016 -0300 Remove padding from panel button --- panel-plugin/xfce4-cpufreq-plugin.c | 18 +++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/panel-plugin/xfce4-cpufreq-plugin.c b/panel-plugin/xfce4-cpufreq-plugin.c index c40385f..9dd6d02 100644 --- a/panel-plugin/xfce4-cpufreq-plugin.c +++ b/panel-plugin/xfce4-cpufreq-plugin.c @@ -467,11 +467,24 @@ cpufreq_prepare_label (CpuFreqPlugin *cpufreq) static void cpufreq_widgets (void) { + gchar *css; + GtkCssProvider *provider; + /* create panel toggle button which will contain all other widgets */ - cpuFreq->button = xfce_create_panel_toggle_button (); + cpuFreq->button = xfce_panel_create_toggle_button (); xfce_panel_plugin_add_action_widget (cpuFreq->plugin, cpuFreq->button); gtk_container_add (GTK_CONTAINER (cpuFreq->plugin), cpuFreq->button); + css = g_strdup_printf("button { padding: 0px; }"); + + provider = gtk_css_provider_new (); + gtk_css_provider_load_from_data (provider, css, -1, NULL); + gtk_style_context_add_provider ( + GTK_STYLE_CONTEXT (gtk_widget_get_style_context (GTK_WIDGET (cpuFreq->button))), + GTK_STYLE_PROVIDER(provider), + GTK_STYLE_PROVIDER_PRIORITY_APPLICATION); + g_free(css); + cpuFreq->box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, SPACING); gtk_container_set_border_width (GTK_CONTAINER (cpuFreq->box), BORDER); gtk_container_add (GTK_CONTAINER (cpuFreq->button), cpuFreq->box); @@ -488,8 +501,7 @@ cpufreq_widgets (void) g_signal_connect (G_OBJECT (cpuFreq->button), "query-tooltip", G_CALLBACK (cpufreq_update_tooltip), cpuFreq); - gtk_widget_show (cpuFreq->box); - gtk_widget_show (cpuFreq->button); + gtk_widget_show_all (cpuFreq->button); cpufreq_update_plugin (TRUE); } -- To stop receiving notification emails like this one, please contact the administrator of this repository. ___ Xfce4-commits mailing list Xfce4-commits@xfce.org https://mail.xfce.org/mailman/listinfo/xfce4-commits
[Xfce4-commits] [panel-plugins/xfce4-cpufreq-plugin] 09/20: Replace GtkComboBox by GtkComboBoxText
This is an automated email from the git hooks/post-receive script. andre pushed a commit to branch master in repository panel-plugins/xfce4-cpufreq-plugin. commit 9959834f2f482a484fc436b46d319db6e9367e79 Author: Andre MirandaDate: Fri Nov 4 22:43:30 2016 -0300 Replace GtkComboBox by GtkComboBoxText --- panel-plugin/xfce4-cpufreq-configure.c | 10 +- panel-plugin/xfce4-cpufreq-overview.c | 16 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/panel-plugin/xfce4-cpufreq-configure.c b/panel-plugin/xfce4-cpufreq-configure.c index e6f77c5..5bfbe28 100644 --- a/panel-plugin/xfce4-cpufreq-configure.c +++ b/panel-plugin/xfce4-cpufreq-configure.c @@ -294,19 +294,19 @@ cpufreq_configure (XfcePanelPlugin *plugin) gtk_label_set_xalign (GTK_LABEL (label), 0); gtk_size_group_add_widget (sg0, label); - combo = configure->combo_cpu = gtk_combo_box_new_text (); + combo = configure->combo_cpu = gtk_combo_box_text_new (); gtk_box_pack_start (GTK_BOX (hbox), combo, FALSE, TRUE, 0); gtk_label_set_mnemonic_widget (GTK_LABEL (label), combo); for (i = 0; i < cpuFreq->cpus->len; ++i) { cpu_name = g_strdup_printf ("%d", i); - gtk_combo_box_append_text (GTK_COMBO_BOX (combo), cpu_name); + gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (combo), cpu_name); g_free (cpu_name); } - gtk_combo_box_append_text (GTK_COMBO_BOX (combo), _("min")); - gtk_combo_box_append_text (GTK_COMBO_BOX (combo), _("avg")); - gtk_combo_box_append_text (GTK_COMBO_BOX (combo), _("max")); + gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (combo), _("min")); + gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (combo), _("avg")); + gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (combo), _("max")); gtk_combo_box_set_active (GTK_COMBO_BOX (combo), cpuFreq->options->show_cpu); g_signal_connect (G_OBJECT (combo), "changed", G_CALLBACK (combo_changed), configure); diff --git a/panel-plugin/xfce4-cpufreq-overview.c b/panel-plugin/xfce4-cpufreq-overview.c index 8fd59d4..df1d622 100644 --- a/panel-plugin/xfce4-cpufreq-overview.c +++ b/panel-plugin/xfce4-cpufreq-overview.c @@ -107,7 +107,7 @@ cpufreq_overview_add (CpuInfo *cpu, guint cpu_number, GtkWidget *dialog_hbox) if (cpu->available_freqs != NULL) /* Linux 2.6 with scaling support */ { - combo = gtk_combo_box_new_text (); + combo = gtk_combo_box_text_new (); gtk_size_group_add_widget (sg1, combo); gtk_box_pack_end (GTK_BOX (hbox), combo, TRUE, TRUE, 0); list = g_list_first (cpu->available_freqs); @@ -117,7 +117,7 @@ cpufreq_overview_add (CpuInfo *cpu, guint cpu_number, GtkWidget *dialog_hbox) text = cpufreq_get_human_readable_freq (GPOINTER_TO_INT (list->data)); if (GPOINTER_TO_INT (list->data) == cpu->cur_freq) i = j; - gtk_combo_box_append_text (GTK_COMBO_BOX (combo), text); + gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (combo), text); g_free (text); list = g_list_next (list); j++; @@ -126,18 +126,18 @@ cpufreq_overview_add (CpuInfo *cpu, guint cpu_number, GtkWidget *dialog_hbox) } else if (cpu->cur_freq && cpu->min_freq && cpu->max_freq) /* Linux 2.4 with scaling support */ { - combo = gtk_combo_box_new_text (); + combo = gtk_combo_box_text_new (); gtk_size_group_add_widget (sg1, combo); gtk_box_pack_end (GTK_BOX (hbox), combo, TRUE, TRUE, 0); text = cpufreq_get_human_readable_freq (cpu->cur_freq); -gtk_combo_box_append_text (GTK_COMBO_BOX (combo), text); +gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (combo), text); g_free (text); text = cpufreq_get_human_readable_freq (cpu->max_freq); -gtk_combo_box_append_text (GTK_COMBO_BOX (combo), text); +gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (combo), text); g_free (text); text = cpufreq_get_human_readable_freq (cpu->min_freq); -gtk_combo_box_append_text (GTK_COMBO_BOX (combo), text); +gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (combo), text); g_free (text); gtk_combo_box_set_active (GTK_COMBO_BOX (combo), 0); @@ -168,14 +168,14 @@ cpufreq_overview_add (CpuInfo *cpu, guint cpu_number, GtkWidget *dialog_hbox) gtk_label_set_xalign (GTK_LABEL (label), 0); gtk_box_pack_start (GTK_BOX (hbox), label, TRUE, TRUE, 0); - combo =
[Xfce4-commits] [panel-plugins/xfce4-cpufreq-plugin] 19/20: Fix stdout pollution due bad if handling
This is an automated email from the git hooks/post-receive script. andre pushed a commit to branch master in repository panel-plugins/xfce4-cpufreq-plugin. commit d6b506e2933684cbea7b7423593f0f1b771e39a0 Author: Andre MirandaDate: Tue Dec 20 22:17:56 2016 -0300 Fix stdout pollution due bad if handling --- panel-plugin/xfce4-cpufreq-plugin.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/panel-plugin/xfce4-cpufreq-plugin.c b/panel-plugin/xfce4-cpufreq-plugin.c index 50f61cb..6801426 100644 --- a/panel-plugin/xfce4-cpufreq-plugin.c +++ b/panel-plugin/xfce4-cpufreq-plugin.c @@ -277,19 +277,24 @@ cpufreq_widgets_layout (void) FALSE, FALSE, 0, GTK_PACK_START); } else { if (orientation == GTK_ORIENTATION_VERTICAL) { - if (cpuFreq->icon) + if (cpuFreq->icon) { gtk_widget_set_halign (cpuFreq->icon, GTK_ALIGN_CENTER); gtk_widget_set_valign (cpuFreq->icon, GTK_ALIGN_END); + } + if (cpuFreq->label) gtk_widget_set_halign (cpuFreq->label, GTK_ALIGN_CENTER); } else { if (cpuFreq->icon) gtk_widget_set_valign (cpuFreq->icon, GTK_ALIGN_CENTER); - if (cpuFreq->label) + + if (cpuFreq->label) { gtk_widget_set_halign (cpuFreq->label, GTK_ALIGN_END); gtk_widget_set_valign (cpuFreq->label, GTK_ALIGN_CENTER); + } pos = resized ? 1 : 0; } + if (cpuFreq->label) gtk_label_set_justify (GTK_LABEL (cpuFreq->label), resized -- To stop receiving notification emails like this one, please contact the administrator of this repository. ___ Xfce4-commits mailing list Xfce4-commits@xfce.org https://mail.xfce.org/mailman/listinfo/xfce4-commits
[Xfce4-commits] [panel-plugins/xfce4-cpufreq-plugin] 12/20: Replace gtk_widget_size_request by gtk_widget_get_preferred_size
This is an automated email from the git hooks/post-receive script. andre pushed a commit to branch master in repository panel-plugins/xfce4-cpufreq-plugin. commit 3c58795a36ab427a61c9270232b4b26eb7b19b36 Author: Andre MirandaDate: Fri Nov 4 22:47:52 2016 -0300 Replace gtk_widget_size_request by gtk_widget_get_preferred_size --- panel-plugin/xfce4-cpufreq-plugin.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/panel-plugin/xfce4-cpufreq-plugin.c b/panel-plugin/xfce4-cpufreq-plugin.c index 6e606e6..708791d 100644 --- a/panel-plugin/xfce4-cpufreq-plugin.c +++ b/panel-plugin/xfce4-cpufreq-plugin.c @@ -125,7 +125,7 @@ cpufreq_update_label (CpuInfo *cpu) gtk_widget_hide (cpuFreq->label); return TRUE; } - + both = cpu->cur_governor != NULL && cpuFreq->options->show_label_freq && cpuFreq->options->show_label_governor; @@ -150,7 +150,7 @@ cpufreq_update_label (CpuInfo *cpu) /* Set label width to max width if smaller to avoid panel resizing/jumping (see bug #10385). */ - gtk_widget_size_request (cpuFreq->label, _size); + gtk_widget_get_preferred_size (cpuFreq->label, NULL, _size); if (cpuFreq->panel_mode == XFCE_PANEL_PLUGIN_MODE_VERTICAL) if (label_size.height < cpuFreq->label_max_width) gtk_widget_set_size_request (GTK_WIDGET (cpuFreq->label), @@ -211,12 +211,12 @@ cpufreq_widgets_layout (void) /* check if the label fits below the icon, else put them side by side */ if (GTK_IS_WIDGET(cpuFreq->label) && ! hide_label) { - gtk_widget_size_request (cpuFreq->label, _size); + gtk_widget_get_preferred_size (cpuFreq->label, NULL, _size); lw = label_size.width; lh = label_size.height; } if (GTK_IS_WIDGET(cpuFreq->icon)) { - gtk_widget_size_request (cpuFreq->icon, _size); + gtk_widget_get_preferred_size (cpuFreq->icon, NULL, _size); iw = icon_size.width; ih = icon_size.height; } -- To stop receiving notification emails like this one, please contact the administrator of this repository. ___ Xfce4-commits mailing list Xfce4-commits@xfce.org https://mail.xfce.org/mailman/listinfo/xfce4-commits
[Xfce4-commits] [panel-plugins/xfce4-cpufreq-plugin] 17/20: Fix compilation warn
This is an automated email from the git hooks/post-receive script. andre pushed a commit to branch master in repository panel-plugins/xfce4-cpufreq-plugin. commit 6fea1db8b903b4922e3d66bd3f098c1cbe8e Author: Andre MirandaDate: Fri Nov 4 22:54:27 2016 -0300 Fix compilation warn --- panel-plugin/xfce4-cpufreq-plugin.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/panel-plugin/xfce4-cpufreq-plugin.h b/panel-plugin/xfce4-cpufreq-plugin.h index e610f53..30308d1 100644 --- a/panel-plugin/xfce4-cpufreq-plugin.h +++ b/panel-plugin/xfce4-cpufreq-plugin.h @@ -109,6 +109,9 @@ cpufreq_restart_timeout (void); void cpufreq_write_config (XfcePanelPlugin *plugin); +void +cpufreq_update_icon (CpuFreqPlugin *cpufreq); + G_END_DECLS #endif /* XFCE4_CPU_FREQ_H */ -- To stop receiving notification emails like this one, please contact the administrator of this repository. ___ Xfce4-commits mailing list Xfce4-commits@xfce.org https://mail.xfce.org/mailman/listinfo/xfce4-commits
[Xfce4-commits] [panel-plugins/xfce4-cpufreq-plugin] 11/20: Replace GtkV/HSeparator by GtkSeparator
This is an automated email from the git hooks/post-receive script. andre pushed a commit to branch master in repository panel-plugins/xfce4-cpufreq-plugin. commit c42e14410b5497440c2e60af475cdc9ced8e3138 Author: Andre MirandaDate: Fri Nov 4 22:46:44 2016 -0300 Replace GtkV/HSeparator by GtkSeparator --- panel-plugin/xfce4-cpufreq-overview.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/panel-plugin/xfce4-cpufreq-overview.c b/panel-plugin/xfce4-cpufreq-overview.c index 2b7b703..d2d231a 100644 --- a/panel-plugin/xfce4-cpufreq-overview.c +++ b/panel-plugin/xfce4-cpufreq-overview.c @@ -280,13 +280,13 @@ cpufreq_overview (GtkWidget *widget, GdkEventButton *ev, CpuFreqPlugin *cpuFreq) cpufreq_overview_add (cpu, j, dialog_hbox); if (j + 1 < cpuFreq->cpus->len && j + 1 == i + step) { - separator = gtk_hseparator_new (); + separator = gtk_separator_new (GTK_ORIENTATION_HORIZONTAL); gtk_box_pack_start (GTK_BOX (dialog_vbox), separator, FALSE, FALSE, 0); } if (j + 1 < cpuFreq->cpus->len && j + 1 < i + step) { - separator = gtk_vseparator_new (); + separator = gtk_separator_new (GTK_ORIENTATION_VERTICAL); gtk_box_pack_start (GTK_BOX (dialog_hbox), separator, FALSE, FALSE, 0); } -- To stop receiving notification emails like this one, please contact the administrator of this repository. ___ Xfce4-commits mailing list Xfce4-commits@xfce.org https://mail.xfce.org/mailman/listinfo/xfce4-commits
[Xfce4-commits] [panel-plugins/xfce4-cpufreq-plugin] 13/20: Remove GTK_DIALOG_NO_SEPARATOR and replace GTK_STOCK_*
This is an automated email from the git hooks/post-receive script. andre pushed a commit to branch master in repository panel-plugins/xfce4-cpufreq-plugin. commit f6a5d1dbfdaaa4fe6b860370fe05ad446b86d263 Author: Andre MirandaDate: Fri Nov 4 22:50:10 2016 -0300 Remove GTK_DIALOG_NO_SEPARATOR and replace GTK_STOCK_* --- panel-plugin/xfce4-cpufreq-configure.c | 5 - panel-plugin/xfce4-cpufreq-overview.c | 7 +++ 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/panel-plugin/xfce4-cpufreq-configure.c b/panel-plugin/xfce4-cpufreq-configure.c index b12293d..d7c1cb5 100644 --- a/panel-plugin/xfce4-cpufreq-configure.c +++ b/panel-plugin/xfce4-cpufreq-configure.c @@ -185,7 +185,10 @@ cpufreq_configure (XfcePanelPlugin *plugin) xfce_panel_plugin_block_menu (cpuFreq->plugin); dialog = xfce_titled_dialog_new_with_buttons (_("Configure CPU Frequency Monitor"), -NULL, GTK_DIALOG_NO_SEPARATOR, GTK_STOCK_CLOSE, GTK_RESPONSE_OK, NULL); +GTK_WINDOW (gtk_widget_get_toplevel (GTK_WIDGET (plugin))), +GTK_DIALOG_DESTROY_WITH_PARENT, +"gtk-close", GTK_RESPONSE_OK, +NULL); xfce_titled_dialog_set_subtitle (XFCE_TITLED_DIALOG (dialog), _("Configure the CPU frequency plugin")); gtk_window_set_position (GTK_WINDOW (dialog), GTK_WIN_POS_CENTER); diff --git a/panel-plugin/xfce4-cpufreq-overview.c b/panel-plugin/xfce4-cpufreq-overview.c index d2d231a..6d2cb0d 100644 --- a/panel-plugin/xfce4-cpufreq-overview.c +++ b/panel-plugin/xfce4-cpufreq-overview.c @@ -243,10 +243,9 @@ cpufreq_overview (GtkWidget *widget, GdkEventButton *ev, CpuFreqPlugin *cpuFreq) TRUE); dialog = xfce_titled_dialog_new_with_buttons (_("CPU Information"), - NULL, - GTK_DIALOG_NO_SEPARATOR, - GTK_STOCK_CLOSE, - GTK_RESPONSE_OK, + GTK_WINDOW (gtk_widget_get_toplevel (GTK_WIDGET (cpuFreq->plugin))), + GTK_DIALOG_DESTROY_WITH_PARENT, + "gtk-close", GTK_RESPONSE_OK, NULL); xfce_titled_dialog_set_subtitle (XFCE_TITLED_DIALOG (dialog), _("An overview of all the CPUs in the system")); -- To stop receiving notification emails like this one, please contact the administrator of this repository. ___ Xfce4-commits mailing list Xfce4-commits@xfce.org https://mail.xfce.org/mailman/listinfo/xfce4-commits
[Xfce4-commits] [panel-plugins/xfce4-cpufreq-plugin] 20/20: Merge branch 'gtk3'
This is an automated email from the git hooks/post-receive script. andre pushed a commit to branch master in repository panel-plugins/xfce4-cpufreq-plugin. commit 584b4ba7f5346deea014154a6a1ae78e008f6240 Merge: 968f12c d6b506e Author: Andre MirandaDate: Thu May 4 20:01:13 2017 -0300 Merge branch 'gtk3' .gitignore | 51 ++ AUTHORS| 1 + configure.ac.in| 11 ++-- panel-plugin/cpufreq.desktop.in| 1 + panel-plugin/xfce4-cpufreq-configure.c | 88 +++ panel-plugin/xfce4-cpufreq-overview.c | 78 panel-plugin/xfce4-cpufreq-plugin.c| 94 -- panel-plugin/xfce4-cpufreq-plugin.h| 3 ++ 8 files changed, 230 insertions(+), 97 deletions(-) -- To stop receiving notification emails like this one, please contact the administrator of this repository. ___ Xfce4-commits mailing list Xfce4-commits@xfce.org https://mail.xfce.org/mailman/listinfo/xfce4-commits
[Xfce4-commits] [panel-plugins/xfce4-cpufreq-plugin] 02/20: Bump dependencies to check for gtk-3.20/libxfce4ui-2/libxfce4panel-2.0
This is an automated email from the git hooks/post-receive script. andre pushed a commit to branch master in repository panel-plugins/xfce4-cpufreq-plugin. commit 4c2f940e601a5155de46fbbd8aade71500fc6215 Author: Andre MirandaDate: Fri Nov 4 22:20:00 2016 -0300 Bump dependencies to check for gtk-3.20/libxfce4ui-2/libxfce4panel-2.0 --- configure.ac.in | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/configure.ac.in b/configure.ac.in index 269bf18..6c06e6d 100644 --- a/configure.ac.in +++ b/configure.ac.in @@ -15,7 +15,8 @@ m4_define([cpufreq_version], [cpufreq_version_major().cpufreq_version_minor().cp dnl Initialize autoconf AC_COPYRIGHT([Copyright (c) 2006 Thomas Schreck Copyright (c) 2010-2011 Florian Rivoal - Copyright (c) 2013-2015 Harald Judt ]) + Copyright (c) 2013-2015 Harald Judt + Copyright (c) 2016 André Miranda ]) AC_INIT([xfce4-cpufreq-plugin], [cpufreq_version()], [http://bugzilla.xfce.org], [xfce4-cpufreq-plugin]) AC_PREREQ([2.60]) @@ -23,6 +24,7 @@ dnl Initialize automake AM_INIT_AUTOMAKE([1.9 dist-bzip2 tar-ustar no-dist-gzip]) AC_CONFIG_HEADERS([config.h]) AM_MAINTAINER_MODE() +AM_SILENT_RULES([yes]) dnl Check for basic programs AC_PROG_CC() @@ -40,10 +42,10 @@ XDT_I18N([@LINGUAS@]) dnl configure the panel plugin XDT_CHECK_PACKAGE([GTHREAD], [gthread-2.0], [2.20.0]) -XDT_CHECK_PACKAGE([GTK], [gtk+-2.0], [2.14.0]) -XDT_CHECK_PACKAGE([LIBXFCE4UTIL], [libxfce4util-1.0], [4.9.0]) -XDT_CHECK_PACKAGE([LIBXFCE4UI], [libxfce4ui-1], [4.9.0]) -XDT_CHECK_PACKAGE([LIBXFCE4PANEL], [libxfce4panel-1.0], [4.9.0]) +XDT_CHECK_PACKAGE([GTK], [gtk+-3.0], [3.20.0]) +XDT_CHECK_PACKAGE([LIBXFCE4UTIL], [libxfce4util-1.0], [4.12.0]) +XDT_CHECK_PACKAGE([LIBXFCE4UI], [libxfce4ui-2], [4.12.0]) +XDT_CHECK_PACKAGE([LIBXFCE4PANEL], [libxfce4panel-2.0], [4.12.0]) dnl *** dnl *** Check for debugging support *** -- To stop receiving notification emails like this one, please contact the administrator of this repository. ___ Xfce4-commits mailing list Xfce4-commits@xfce.org https://mail.xfce.org/mailman/listinfo/xfce4-commits
[Xfce4-commits] [panel-plugins/xfce4-cpufreq-plugin] 05/20: Replace GtkFontSelectionDialog by GtkFontChooserDialog
This is an automated email from the git hooks/post-receive script. andre pushed a commit to branch master in repository panel-plugins/xfce4-cpufreq-plugin. commit a9b9142445b1f3ebac4bb8676c3eed89d081e067 Author: Andre MirandaDate: Fri Nov 4 22:30:05 2016 -0300 Replace GtkFontSelectionDialog by GtkFontChooserDialog --- panel-plugin/xfce4-cpufreq-configure.c | 23 +-- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/panel-plugin/xfce4-cpufreq-configure.c b/panel-plugin/xfce4-cpufreq-configure.c index 895166f..d72d7a4 100644 --- a/panel-plugin/xfce4-cpufreq-configure.c +++ b/panel-plugin/xfce4-cpufreq-configure.c @@ -34,10 +34,13 @@ #endif static void +check_button_changed (GtkWidget *button, CpuFreqPluginConfigure *configure); + +static void check_button_changed (GtkWidget *button, CpuFreqPluginConfigure *configure) { if (button == configure->display_icon) - cpuFreq->options->show_icon = + cpuFreq->options->show_icon = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (button)); else if (button == configure->display_freq) @@ -90,19 +93,19 @@ static gboolean button_fontname_clicked(GtkWidget *button, CpuFreqPluginConfigure *configure) { - GtkFontSelectionDialog *fsd; + GtkWidget *fc; gchar *fontname; gint result; - fsd = GTK_FONT_SELECTION_DIALOG - (gtk_font_selection_dialog_new (_("Select font"))); + fc = gtk_font_chooser_dialog_new (_("Select font"), + GTK_WINDOW(gtk_widget_get_toplevel(button))); + if (cpuFreq->options->fontname) - gtk_font_selection_dialog_set_font_name(fsd, - cpuFreq->options->fontname); + gtk_font_chooser_set_font (GTK_FONT_CHOOSER (fc), cpuFreq->options->fontname); - result = gtk_dialog_run(GTK_DIALOG(fsd)); + result = gtk_dialog_run(GTK_DIALOG(fc)); if (result == GTK_RESPONSE_OK || result == GTK_RESPONSE_ACCEPT) { - fontname = gtk_font_selection_dialog_get_font_name(fsd); + fontname = gtk_font_chooser_get_font (GTK_FONT_CHOOSER (fc)); if (fontname != NULL) { gtk_button_set_label(GTK_BUTTON(button), fontname); g_free (cpuFreq->options->fontname); @@ -110,7 +113,7 @@ button_fontname_clicked(GtkWidget *button, } button_fontname_update(button, TRUE); } - gtk_widget_destroy(GTK_WIDGET(fsd)); + gtk_widget_destroy(GTK_WIDGET(fc)); return TRUE; } @@ -150,7 +153,7 @@ static void spinner_changed (GtkWidget *spinner, CpuFreqPluginConfigure *configure) { cpuFreq->options->timeout =gtk_spin_button_get_value_as_int (GTK_SPIN_BUTTON (spinner)); - + cpufreq_restart_timeout (); } -- To stop receiving notification emails like this one, please contact the administrator of this repository. ___ Xfce4-commits mailing list Xfce4-commits@xfce.org https://mail.xfce.org/mailman/listinfo/xfce4-commits
[Xfce4-commits] [panel-plugins/xfce4-cpufreq-plugin] 14/20: Use CSS font styling
This is an automated email from the git hooks/post-receive script. andre pushed a commit to branch master in repository panel-plugins/xfce4-cpufreq-plugin. commit 2da482a01e9063d137e04f6e5f595ba965030d2c Author: Andre MirandaDate: Fri Nov 4 22:52:16 2016 -0300 Use CSS font styling --- panel-plugin/xfce4-cpufreq-plugin.c | 28 +++- 1 file changed, 23 insertions(+), 5 deletions(-) diff --git a/panel-plugin/xfce4-cpufreq-plugin.c b/panel-plugin/xfce4-cpufreq-plugin.c index 708791d..96e1766 100644 --- a/panel-plugin/xfce4-cpufreq-plugin.c +++ b/panel-plugin/xfce4-cpufreq-plugin.c @@ -100,16 +100,34 @@ cpufreq_cpus_calc_max (void) void cpufreq_label_set_font (void) { - PangoFontDescription *desc = NULL; + gchar *css; + GtkCssProvider *provider; + PangoFontDescription *font; if (G_UNLIKELY (cpuFreq->label == NULL)) return; if (cpuFreq->options->fontname) - desc = pango_font_description_from_string (cpuFreq->options->fontname); - - gtk_widget_modify_font (cpuFreq->label, desc); -pango_font_description_free (desc); + { + font = pango_font_description_from_string(cpuFreq->options->fontname); + + css = g_strdup_printf("label { font-family: %s; font-size: %dpx; font-style: %s; font-weight: %s }", + pango_font_description_get_family (font), + pango_font_description_get_size (font) / PANGO_SCALE, + (pango_font_description_get_style(font) == PANGO_STYLE_ITALIC || + pango_font_description_get_style(font) == PANGO_STYLE_OBLIQUE) ? "italic" : "normal", + (pango_font_description_get_weight(font) >= PANGO_WEIGHT_BOLD) ? "bold" : "normal"); + pango_font_description_free (font); + + provider = gtk_css_provider_new (); + + gtk_css_provider_load_from_data (provider, css, -1, NULL); + gtk_style_context_add_provider ( + GTK_STYLE_CONTEXT (gtk_widget_get_style_context (GTK_WIDGET (cpuFreq->label))), + GTK_STYLE_PROVIDER(provider), + GTK_STYLE_PROVIDER_PRIORITY_APPLICATION); + g_free(css); + } } gboolean -- To stop receiving notification emails like this one, please contact the administrator of this repository. ___ Xfce4-commits mailing list Xfce4-commits@xfce.org https://mail.xfce.org/mailman/listinfo/xfce4-commits
[Xfce4-commits] [panel-plugins/xfce4-cpufreq-plugin] 08/20: Replace padding by margin
This is an automated email from the git hooks/post-receive script. andre pushed a commit to branch master in repository panel-plugins/xfce4-cpufreq-plugin. commit ccaa95d5ab9352cc4ef65a3d24cfbbc772c53c4b Author: Andre MirandaDate: Fri Nov 4 22:42:38 2016 -0300 Replace padding by margin --- panel-plugin/xfce4-cpufreq-configure.c | 11 +-- panel-plugin/xfce4-cpufreq-overview.c | 6 +- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/panel-plugin/xfce4-cpufreq-configure.c b/panel-plugin/xfce4-cpufreq-configure.c index ce872e6..e6f77c5 100644 --- a/panel-plugin/xfce4-cpufreq-configure.c +++ b/panel-plugin/xfce4-cpufreq-configure.c @@ -215,7 +215,10 @@ cpufreq_configure (XfcePanelPlugin *plugin) gtk_widget_set_vexpand(align, TRUE); gtk_container_add (GTK_CONTAINER (frame), align); - gtk_alignment_set_padding (GTK_ALIGNMENT (align), 0, 0, BORDER*3, 0); + gtk_widget_set_margin_top (align, 0); + gtk_widget_set_margin_bottom (align, 0); + gtk_widget_set_margin_start (align, BORDER * 3); + gtk_widget_set_margin_end (align, 0); vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, BORDER); gtk_container_add (GTK_CONTAINER (align), vbox); @@ -251,8 +254,12 @@ cpufreq_configure (XfcePanelPlugin *plugin) gtk_widget_set_valign(align, GTK_ALIGN_CENTER); gtk_widget_set_hexpand(align, TRUE); gtk_widget_set_vexpand(align, TRUE); + gtk_container_add (GTK_CONTAINER (frame), align); - gtk_alignment_set_padding (GTK_ALIGNMENT (align), 0, 0, BORDER * 3, 0); + gtk_widget_set_margin_top (align, 0); + gtk_widget_set_margin_bottom (align, 0); + gtk_widget_set_margin_start (align, BORDER * 3); + gtk_widget_set_margin_end (align, 0); vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, BORDER); gtk_container_add (GTK_CONTAINER (align), vbox); diff --git a/panel-plugin/xfce4-cpufreq-overview.c b/panel-plugin/xfce4-cpufreq-overview.c index 30f5a2a..8fd59d4 100644 --- a/panel-plugin/xfce4-cpufreq-overview.c +++ b/panel-plugin/xfce4-cpufreq-overview.c @@ -53,9 +53,13 @@ cpufreq_overview_add (CpuInfo *cpu, guint cpu_number, GtkWidget *dialog_hbox) gtk_box_pack_start (GTK_BOX (dialog_vbox), hbox, TRUE, TRUE, 0); icon = gtk_image_new_from_icon_name ("xfce4-cpufreq-plugin", GTK_ICON_SIZE_BUTTON); - gtk_misc_set_padding (GTK_MISC (icon), 5, 10); gtk_widget_set_halign (icon, GTK_ALIGN_END); gtk_widget_set_valign (icon, GTK_ALIGN_CENTER); + gtk_widget_set_margin_top (icon, 10); + gtk_widget_set_margin_bottom (icon, 10); + gtk_widget_set_margin_start (icon, 5); + gtk_widget_set_margin_end (icon, 5); + gtk_box_pack_start (GTK_BOX (hbox), icon, TRUE, TRUE, 0); text = g_strdup_printf ("CPU %d", cpu_number); label = gtk_label_new (text); -- To stop receiving notification emails like this one, please contact the administrator of this repository. ___ Xfce4-commits mailing list Xfce4-commits@xfce.org https://mail.xfce.org/mailman/listinfo/xfce4-commits
[Xfce4-commits] [panel-plugins/xfce4-cpufreq-plugin] 04/20: Set X-XFCE-API=2.0 in desktop file
This is an automated email from the git hooks/post-receive script. andre pushed a commit to branch master in repository panel-plugins/xfce4-cpufreq-plugin. commit 1b3ef3c58c9f7586266be51a368cdd47b97cd030 Author: Andre MirandaDate: Fri Nov 4 22:27:36 2016 -0300 Set X-XFCE-API=2.0 in desktop file --- panel-plugin/cpufreq.desktop.in | 1 + 1 file changed, 1 insertion(+) diff --git a/panel-plugin/cpufreq.desktop.in b/panel-plugin/cpufreq.desktop.in index 3ee58c2..39f7d2e 100644 --- a/panel-plugin/cpufreq.desktop.in +++ b/panel-plugin/cpufreq.desktop.in @@ -5,3 +5,4 @@ _Comment=Show CPU frequencies and governor Icon=xfce4-cpufreq-plugin X-XFCE-Internal=FALSE X-XFCE-Module=cpufreq +X-XFCE-API=2.0 -- To stop receiving notification emails like this one, please contact the administrator of this repository. ___ Xfce4-commits mailing list Xfce4-commits@xfce.org https://mail.xfce.org/mailman/listinfo/xfce4-commits
[Xfce4-commits] [panel-plugins/xfce4-cpufreq-plugin] 01/20: Add .gitignore
This is an automated email from the git hooks/post-receive script. andre pushed a commit to branch master in repository panel-plugins/xfce4-cpufreq-plugin. commit f69a76aa7a65f964d2f5aec69d4d1b34935d088e Author: Andre MirandaDate: Fri Nov 4 22:18:21 2016 -0300 Add .gitignore --- .gitignore | 51 +++ 1 file changed, 51 insertions(+) diff --git a/.gitignore b/.gitignore new file mode 100644 index 000..89cabbb --- /dev/null +++ b/.gitignore @@ -0,0 +1,51 @@ +*.o +*.o.* +*.a +*.s +*.ko +*.la +*.lo +*.so +*.so.dbg +*.mod.c +*.i +*.lst +*.symtypes +*.order +modules.builtin +*.elf +*.bin +*.gz +*.bz2 +*.lzma +*.xz +*.lzo +*.patch +*.gcno +*.gmo + +.deps/ +.libs/ +aclocal* +autom4te.cache +depcomp +compile +config.* +configure +configure.ac +docs/* +libtool +ltmain.sh +Makefile +Makefile.in* +m4 +missing +mkinstalldirs +panel-plugin/cpufreq.desktop +po/POTFILES +po/.intltool-merge-cache +stamp-* +INSTALL +intltool-*.in +install-sh + -- To stop receiving notification emails like this one, please contact the administrator of this repository. ___ Xfce4-commits mailing list Xfce4-commits@xfce.org https://mail.xfce.org/mailman/listinfo/xfce4-commits
[Xfce4-commits] [panel-plugins/xfce4-cpufreq-plugin] 15/20: Fix icon scaling
This is an automated email from the git hooks/post-receive script. andre pushed a commit to branch master in repository panel-plugins/xfce4-cpufreq-plugin. commit 2e2e15d9fefa2f3b6a077958aaeb17732d9aedda Author: Andre MirandaDate: Fri Nov 4 22:53:36 2016 -0300 Fix icon scaling --- panel-plugin/xfce4-cpufreq-plugin.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/panel-plugin/xfce4-cpufreq-plugin.c b/panel-plugin/xfce4-cpufreq-plugin.c index 96e1766..c40385f 100644 --- a/panel-plugin/xfce4-cpufreq-plugin.c +++ b/panel-plugin/xfce4-cpufreq-plugin.c @@ -422,7 +422,7 @@ cpufreq_update_icon (CpuFreqPlugin *cpufreq) } if (cpufreq->options->show_icon) { - GdkPixbuf *buf; + GdkPixbuf *buf, *scaled; gint icon_size; icon_size = cpuFreq->panel_size / cpuFreq->panel_rows; @@ -434,9 +434,12 @@ cpufreq_update_icon (CpuFreqPlugin *cpufreq) buf = gtk_icon_theme_load_icon (gtk_icon_theme_get_default (), "xfce4-cpufreq-plugin", icon_size, 0, NULL); + if (buf) { - cpufreq->icon = gtk_image_new_from_pixbuf (buf); + scaled = gdk_pixbuf_scale_simple (buf, icon_size, icon_size, GDK_INTERP_BILINEAR); + cpufreq->icon = gtk_image_new_from_pixbuf (scaled); g_object_unref (G_OBJECT (buf)); + g_object_unref (G_OBJECT (scaled)); } else { cpufreq->icon = gtk_image_new_from_icon_name ("xfce4-cpufreq-plugin", GTK_ICON_SIZE_BUTTON); -- To stop receiving notification emails like this one, please contact the administrator of this repository. ___ Xfce4-commits mailing list Xfce4-commits@xfce.org https://mail.xfce.org/mailman/listinfo/xfce4-commits
[Xfce4-commits] [panel-plugins/xfce4-cpufreq-plugin] 03/20: Remove unused libxfce4util
This is an automated email from the git hooks/post-receive script. andre pushed a commit to branch master in repository panel-plugins/xfce4-cpufreq-plugin. commit 65a7d992f9f2dc5bbf67e00884ed20789830e4db Author: Andre MirandaDate: Fri Nov 4 22:26:26 2016 -0300 Remove unused libxfce4util --- configure.ac.in | 1 - panel-plugin/xfce4-cpufreq-plugin.c | 1 - 2 files changed, 2 deletions(-) diff --git a/configure.ac.in b/configure.ac.in index 6c06e6d..9fc6d7a 100644 --- a/configure.ac.in +++ b/configure.ac.in @@ -43,7 +43,6 @@ XDT_I18N([@LINGUAS@]) dnl configure the panel plugin XDT_CHECK_PACKAGE([GTHREAD], [gthread-2.0], [2.20.0]) XDT_CHECK_PACKAGE([GTK], [gtk+-3.0], [3.20.0]) -XDT_CHECK_PACKAGE([LIBXFCE4UTIL], [libxfce4util-1.0], [4.12.0]) XDT_CHECK_PACKAGE([LIBXFCE4UI], [libxfce4ui-2], [4.12.0]) XDT_CHECK_PACKAGE([LIBXFCE4PANEL], [libxfce4panel-2.0], [4.12.0]) diff --git a/panel-plugin/xfce4-cpufreq-plugin.c b/panel-plugin/xfce4-cpufreq-plugin.c index b31218e..156741c 100644 --- a/panel-plugin/xfce4-cpufreq-plugin.c +++ b/panel-plugin/xfce4-cpufreq-plugin.c @@ -26,7 +26,6 @@ #include #endif -#include #include #ifndef _ # include -- To stop receiving notification emails like this one, please contact the administrator of this repository. ___ Xfce4-commits mailing list Xfce4-commits@xfce.org https://mail.xfce.org/mailman/listinfo/xfce4-commits
[Xfce4-commits] [panel-plugins/xfce4-cpufreq-plugin] 06/20: Replace GtkV/HBox by GtkBox
This is an automated email from the git hooks/post-receive script. andre pushed a commit to branch master in repository panel-plugins/xfce4-cpufreq-plugin. commit f79632f177e4117c93518f727294d259ae5e109d Author: Andre MirandaDate: Fri Nov 4 22:34:03 2016 -0300 Replace GtkV/HBox by GtkBox --- panel-plugin/xfce4-cpufreq-configure.c | 16 panel-plugin/xfce4-cpufreq-overview.c | 14 +++--- panel-plugin/xfce4-cpufreq-plugin.c| 2 +- 3 files changed, 16 insertions(+), 16 deletions(-) diff --git a/panel-plugin/xfce4-cpufreq-configure.c b/panel-plugin/xfce4-cpufreq-configure.c index d72d7a4..5638da1 100644 --- a/panel-plugin/xfce4-cpufreq-configure.c +++ b/panel-plugin/xfce4-cpufreq-configure.c @@ -203,7 +203,7 @@ cpufreq_configure (XfcePanelPlugin *plugin) frame = gtk_frame_new (NULL); gtk_box_pack_start (GTK_BOX (dialog_vbox), frame, FALSE, TRUE, 0); gtk_frame_set_shadow_type (GTK_FRAME (frame), GTK_SHADOW_NONE); - + label = gtk_label_new (_("Monitor")); gtk_frame_set_label_widget (GTK_FRAME (frame), label); gtk_label_set_use_markup (GTK_LABEL (label), TRUE); @@ -212,11 +212,11 @@ cpufreq_configure (XfcePanelPlugin *plugin) gtk_container_add (GTK_CONTAINER (frame), align); gtk_alignment_set_padding (GTK_ALIGNMENT (align), 0, 0, BORDER*3, 0); - vbox = gtk_vbox_new (FALSE, BORDER); + vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, BORDER); gtk_container_add (GTK_CONTAINER (align), vbox); gtk_container_set_border_width (GTK_CONTAINER (vbox), BORDER); - - hbox = gtk_hbox_new (FALSE, BORDER); + + hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, BORDER); gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0); label = gtk_label_new_with_mnemonic (_("_Update interval:")); @@ -224,7 +224,7 @@ cpufreq_configure (XfcePanelPlugin *plugin) gtk_misc_set_alignment (GTK_MISC (label), 0, 0.5); gtk_size_group_add_widget (sg0, label); - spinner = configure->spinner_timeout = + spinner = configure->spinner_timeout = gtk_spin_button_new_with_range (TIMEOUT_MIN, TIMEOUT_MAX, TIMEOUT_STEP); gtk_label_set_mnemonic_widget (GTK_LABEL (label), spinner); gtk_spin_button_set_value (GTK_SPIN_BUTTON (spinner), (gdouble)cpuFreq->options->timeout); @@ -245,12 +245,12 @@ cpufreq_configure (XfcePanelPlugin *plugin) gtk_container_add (GTK_CONTAINER (frame), align); gtk_alignment_set_padding (GTK_ALIGNMENT (align), 0, 0, BORDER * 3, 0); - vbox = gtk_vbox_new (FALSE, BORDER); + vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, BORDER); gtk_container_add (GTK_CONTAINER (align), vbox); gtk_container_set_border_width (GTK_CONTAINER (vbox), BORDER); /* font settings */ - hbox = gtk_hbox_new (FALSE, BORDER); + hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, BORDER); gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0); label = gtk_label_new_with_mnemonic (_("_Font:")); @@ -268,7 +268,7 @@ cpufreq_configure (XfcePanelPlugin *plugin) button_fontname_update (button, FALSE); /* which cpu to show in panel */ - hbox = gtk_hbox_new (FALSE, BORDER); + hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, BORDER); gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0); label = gtk_label_new_with_mnemonic (_("_Display CPU:")); diff --git a/panel-plugin/xfce4-cpufreq-overview.c b/panel-plugin/xfce4-cpufreq-overview.c index 8e35856..a5a01df 100644 --- a/panel-plugin/xfce4-cpufreq-overview.c +++ b/panel-plugin/xfce4-cpufreq-overview.c @@ -46,10 +46,10 @@ cpufreq_overview_add (CpuInfo *cpu, guint cpu_number, GtkWidget *dialog_hbox) GtkSizeGroup *sg0, *sg1; GList *list; - dialog_vbox = gtk_vbox_new (FALSE, BORDER); + dialog_vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, BORDER); gtk_box_pack_start (GTK_BOX (dialog_hbox), dialog_vbox, TRUE, TRUE, 0); - hbox = gtk_hbox_new (FALSE, BORDER); + hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, BORDER); gtk_box_pack_start (GTK_BOX (dialog_vbox), hbox, TRUE, TRUE, 0); icon = gtk_image_new_from_icon_name ("xfce4-cpufreq-plugin", GTK_ICON_SIZE_BUTTON); @@ -67,7 +67,7 @@ cpufreq_overview_add (CpuInfo *cpu, guint cpu_number, GtkWidget *dialog_hbox) sg1 = gtk_size_group_new (GTK_SIZE_GROUP_BOTH); /* display driver */ - hbox = gtk_hbox_new (FALSE, BORDER); + hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, BORDER); gtk_box_pack_start (GTK_BOX (dialog_vbox), hbox, FALSE, FALSE, 0); label = gtk_label_new (_("Scaling driver:")); @@ -88,7 +88,7 @@ cpufreq_overview_add (CpuInfo *cpu, guint cpu_number, GtkWidget *dialog_hbox) g_free (text); /* display list of available freqs */ - hbox =
[Xfce4-commits] [panel-plugins/xfce4-cpufreq-plugin] 10/20: Use gtk_dialog_get_content_area instead of directly accessing private vbox
This is an automated email from the git hooks/post-receive script. andre pushed a commit to branch master in repository panel-plugins/xfce4-cpufreq-plugin. commit fdfb67b8f71070096a6783457a4aa9b0805ff301 Author: Andre MirandaDate: Fri Nov 4 22:45:24 2016 -0300 Use gtk_dialog_get_content_area instead of directly accessing private vbox --- panel-plugin/xfce4-cpufreq-configure.c | 2 +- panel-plugin/xfce4-cpufreq-overview.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/panel-plugin/xfce4-cpufreq-configure.c b/panel-plugin/xfce4-cpufreq-configure.c index 5bfbe28..b12293d 100644 --- a/panel-plugin/xfce4-cpufreq-configure.c +++ b/panel-plugin/xfce4-cpufreq-configure.c @@ -195,7 +195,7 @@ cpufreq_configure (XfcePanelPlugin *plugin) g_object_set_data (G_OBJECT (cpuFreq->plugin), "configure", dialog); - dialog_vbox = GTK_DIALOG (dialog)->vbox; + dialog_vbox = gtk_dialog_get_content_area (GTK_DIALOG (dialog)); sg0 = gtk_size_group_new(GTK_SIZE_GROUP_BOTH); diff --git a/panel-plugin/xfce4-cpufreq-overview.c b/panel-plugin/xfce4-cpufreq-overview.c index df1d622..2b7b703 100644 --- a/panel-plugin/xfce4-cpufreq-overview.c +++ b/panel-plugin/xfce4-cpufreq-overview.c @@ -256,7 +256,7 @@ cpufreq_overview (GtkWidget *widget, GdkEventButton *ev, CpuFreqPlugin *cpuFreq) g_object_set_data (G_OBJECT (cpuFreq->plugin), "overview", dialog); - dialog_vbox = GTK_DIALOG (dialog)->vbox; + dialog_vbox = gtk_dialog_get_content_area (GTK_DIALOG (dialog)); /* choose how many columns and rows depending on cpu count */ if (cpuFreq->cpus->len < 4) -- To stop receiving notification emails like this one, please contact the administrator of this repository. ___ Xfce4-commits mailing list Xfce4-commits@xfce.org https://mail.xfce.org/mailman/listinfo/xfce4-commits
[Xfce4-commits] [panel-plugins/xfce4-cpufreq-plugin] 07/20: Replace alignment by h/valign and h/vexpand
This is an automated email from the git hooks/post-receive script. andre pushed a commit to branch master in repository panel-plugins/xfce4-cpufreq-plugin. commit 929bdcb58e0da2c21baa224fc6a35302947f5231 Author: Andre MirandaDate: Fri Nov 4 22:40:40 2016 -0300 Replace alignment by h/valign and h/vexpand --- panel-plugin/xfce4-cpufreq-configure.c | 21 - panel-plugin/xfce4-cpufreq-overview.c | 29 +++-- panel-plugin/xfce4-cpufreq-plugin.c| 18 ++ 3 files changed, 45 insertions(+), 23 deletions(-) diff --git a/panel-plugin/xfce4-cpufreq-configure.c b/panel-plugin/xfce4-cpufreq-configure.c index 5638da1..ce872e6 100644 --- a/panel-plugin/xfce4-cpufreq-configure.c +++ b/panel-plugin/xfce4-cpufreq-configure.c @@ -208,7 +208,12 @@ cpufreq_configure (XfcePanelPlugin *plugin) gtk_frame_set_label_widget (GTK_FRAME (frame), label); gtk_label_set_use_markup (GTK_LABEL (label), TRUE); - align = gtk_alignment_new (0.5, 0.5, 1, 1); + align = gtk_box_new (GTK_ORIENTATION_VERTICAL, 1); + gtk_widget_set_halign(align, GTK_ALIGN_START); + gtk_widget_set_valign(align, GTK_ALIGN_CENTER); + gtk_widget_set_hexpand(align, TRUE); + gtk_widget_set_vexpand(align, TRUE); + gtk_container_add (GTK_CONTAINER (frame), align); gtk_alignment_set_padding (GTK_ALIGNMENT (align), 0, 0, BORDER*3, 0); @@ -221,7 +226,7 @@ cpufreq_configure (XfcePanelPlugin *plugin) label = gtk_label_new_with_mnemonic (_("_Update interval:")); gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0); - gtk_misc_set_alignment (GTK_MISC (label), 0, 0.5); + gtk_widget_set_valign (label, GTK_ALIGN_CENTER); gtk_size_group_add_widget (sg0, label); spinner = configure->spinner_timeout = @@ -241,7 +246,11 @@ cpufreq_configure (XfcePanelPlugin *plugin) gtk_frame_set_label_widget (GTK_FRAME (frame), label); gtk_label_set_use_markup (GTK_LABEL (label), TRUE); - align = gtk_alignment_new (0.5, 0.5, 1, 1); + align = gtk_box_new (GTK_ORIENTATION_VERTICAL, 1); + gtk_widget_set_halign(align, GTK_ALIGN_FILL); + gtk_widget_set_valign(align, GTK_ALIGN_CENTER); + gtk_widget_set_hexpand(align, TRUE); + gtk_widget_set_vexpand(align, TRUE); gtk_container_add (GTK_CONTAINER (frame), align); gtk_alignment_set_padding (GTK_ALIGNMENT (align), 0, 0, BORDER * 3, 0); @@ -255,7 +264,8 @@ cpufreq_configure (XfcePanelPlugin *plugin) label = gtk_label_new_with_mnemonic (_("_Font:")); gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0); - gtk_misc_set_alignment (GTK_MISC (label), 0, 0.5); + gtk_widget_set_valign (label, GTK_ALIGN_CENTER); + gtk_label_set_xalign (GTK_LABEL (label), 0); gtk_size_group_add_widget (sg0, label); button = configure->fontname = gtk_button_new (); @@ -273,7 +283,8 @@ cpufreq_configure (XfcePanelPlugin *plugin) label = gtk_label_new_with_mnemonic (_("_Display CPU:")); gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0); - gtk_misc_set_alignment (GTK_MISC (label), 0, 0.5); + gtk_widget_set_valign (label, GTK_ALIGN_CENTER); + gtk_label_set_xalign (GTK_LABEL (label), 0); gtk_size_group_add_widget (sg0, label); combo = configure->combo_cpu = gtk_combo_box_new_text (); diff --git a/panel-plugin/xfce4-cpufreq-overview.c b/panel-plugin/xfce4-cpufreq-overview.c index a5a01df..30f5a2a 100644 --- a/panel-plugin/xfce4-cpufreq-overview.c +++ b/panel-plugin/xfce4-cpufreq-overview.c @@ -53,12 +53,14 @@ cpufreq_overview_add (CpuInfo *cpu, guint cpu_number, GtkWidget *dialog_hbox) gtk_box_pack_start (GTK_BOX (dialog_vbox), hbox, TRUE, TRUE, 0); icon = gtk_image_new_from_icon_name ("xfce4-cpufreq-plugin", GTK_ICON_SIZE_BUTTON); - gtk_misc_set_alignment (GTK_MISC (icon), 1, 0.5); gtk_misc_set_padding (GTK_MISC (icon), 5, 10); + gtk_widget_set_halign (icon, GTK_ALIGN_END); + gtk_widget_set_valign (icon, GTK_ALIGN_CENTER); gtk_box_pack_start (GTK_BOX (hbox), icon, TRUE, TRUE, 0); text = g_strdup_printf ("CPU %d", cpu_number); label = gtk_label_new (text); - gtk_misc_set_alignment (GTK_MISC (label), 0, 0.5); + gtk_widget_set_valign (label, GTK_ALIGN_CENTER); + gtk_label_set_xalign (GTK_LABEL (label), 0); gtk_box_pack_start (GTK_BOX (hbox), label, TRUE, TRUE, 0); gtk_label_set_use_markup (GTK_LABEL (label), TRUE); g_free (text); @@ -72,7 +74,8 @@ cpufreq_overview_add (CpuInfo *cpu, guint cpu_number, GtkWidget *dialog_hbox) label = gtk_label_new (_("Scaling driver:")); gtk_size_group_add_widget (sg0, label); - gtk_misc_set_alignment (GTK_MISC (label), 0, 0.5); + gtk_widget_set_valign (label, GTK_ALIGN_CENTER); + gtk_label_set_xalign
[Xfce4-commits] [panel-plugins/xfce4-cpufreq-plugin] branch master updated (968f12c -> 584b4ba)
This is an automated email from the git hooks/post-receive script. andre pushed a change to branch master in repository panel-plugins/xfce4-cpufreq-plugin. from 968f12c I18n: Update translation ca (100%). new f69a76a Add .gitignore new 4c2f940 Bump dependencies to check for gtk-3.20/libxfce4ui-2/libxfce4panel-2.0 new 65a7d99 Remove unused libxfce4util new 1b3ef3c Set X-XFCE-API=2.0 in desktop file new a9b9142 Replace GtkFontSelectionDialog by GtkFontChooserDialog new f79632f Replace GtkV/HBox by GtkBox new 929bdcb Replace alignment by h/valign and h/vexpand new ccaa95d Replace padding by margin new 9959834 Replace GtkComboBox by GtkComboBoxText new fdfb67b Use gtk_dialog_get_content_area instead of directly accessing private vbox new c42e144 Replace GtkV/HSeparator by GtkSeparator new 3c58795 Replace gtk_widget_size_request by gtk_widget_get_preferred_size new f6a5d1d Remove GTK_DIALOG_NO_SEPARATOR and replace GTK_STOCK_* new 2da482a Use CSS font styling new 2e2e15d Fix icon scaling new 66cdecb Remove padding from panel button new 6fea1db Fix compilation warn new 52e9a2e Update copyright and add myself to AUTHORS new d6b506e Fix stdout pollution due bad if handling new 584b4ba Merge branch 'gtk3' The 20 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "adds" were already present in the repository and have only been added to this reference. Summary of changes: .gitignore | 51 ++ AUTHORS| 1 + configure.ac.in| 11 ++-- panel-plugin/cpufreq.desktop.in| 1 + panel-plugin/xfce4-cpufreq-configure.c | 88 +++ panel-plugin/xfce4-cpufreq-overview.c | 78 panel-plugin/xfce4-cpufreq-plugin.c| 94 -- panel-plugin/xfce4-cpufreq-plugin.h| 3 ++ 8 files changed, 230 insertions(+), 97 deletions(-) create mode 100644 .gitignore -- To stop receiving notification emails like this one, please contact the administrator of this repository. ___ Xfce4-commits mailing list Xfce4-commits@xfce.org https://mail.xfce.org/mailman/listinfo/xfce4-commits
[Xfce4-commits] [apps/xfce4-dict] 01/01: Fix a spelling mistake (thanks Unit 193)
This is an automated email from the git hooks/post-receive script. andre pushed a commit to branch master in repository apps/xfce4-dict. commit 5a2412044b8379dc2f44b8b6905501726555b5a8 Author: Andre MirandaDate: Sat May 6 15:59:15 2017 -0300 Fix a spelling mistake (thanks Unit 193) --- lib/dictd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/dictd.c b/lib/dictd.c index 7664e0c..f1814be 100644 --- a/lib/dictd.c +++ b/lib/dictd.c @@ -733,7 +733,7 @@ void dict_dictd_get_information(GtkWidget *button, DictData *dd) if (strncmp("114", buffer, 3) != 0) { dict_show_msgbox(dd, GTK_MESSAGE_ERROR, - _("An error occured while querying server information.")); + _("An error occurred while querying server information.")); return; } -- To stop receiving notification emails like this one, please contact the administrator of this repository. ___ Xfce4-commits mailing list Xfce4-commits@xfce.org https://mail.xfce.org/mailman/listinfo/xfce4-commits
[Xfce4-commits] [apps/xfce4-dict] branch master updated (8930ae2 -> 5a24120)
This is an automated email from the git hooks/post-receive script. andre pushed a change to branch master in repository apps/xfce4-dict. from 8930ae2 Post release tag bump new 5a24120 Fix a spelling mistake (thanks Unit 193) The 1 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "adds" were already present in the repository and have only been added to this reference. Summary of changes: lib/dictd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- To stop receiving notification emails like this one, please contact the administrator of this repository. ___ Xfce4-commits mailing list Xfce4-commits@xfce.org https://mail.xfce.org/mailman/listinfo/xfce4-commits