aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2018-09-19Bump version to 0.20.50.20.5Mauro Carvalho Chehab51-60/+66
Now that we finally got rid of GSettings, let's create a new version. Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2018-09-19Archive the GSettings schemaMauro Carvalho Chehab2-2/+2
We need it at the tarball, in order to be able to build from it. Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2018-09-19Merge pull request #26 from mchehab/gsettingsMauro Carvalho Chehab65-6651/+11457
Store configuration via Gsettings
2018-09-19Update Brazilian Portuguese translationMauro Carvalho Chehab1-17/+16
Add translation for the remaining Gsettings schema. Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2018-09-19Update translation files in order to have gschema settingsMauro Carvalho Chehab48-5936/+10970
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2018-09-19Update hostname messages at the schemaMauro Carvalho Chehab1-2/+2
Now, the server can use more than just FTP. So, make the summary and description more generic. Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2018-09-19Allow translations to data/org.gnome.camorama.gschema.xmlMauro Carvalho Chehab4-1/+9
Now that we're using GSettings for the schema, let's add it to the translation logic. Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2018-09-19Use GSettings instead of Gconf-2Mauro Carvalho Chehab17-714/+479
While it works fine, Gconf was deprecated in favor of Gsettings. Replace its usage inside camorama. Please notice that the changed notifications for the values are not used here. Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2018-09-18Bump version to 0.20.4Mauro Carvalho Chehab51-396/+402
* Do some fixes at camorama's schema * Make the latest used resolution persistent * Display the maximum frame rate at the preferences menu * Update pt_BR translation Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2018-09-18Merge pull request #25 from mchehab/schemasMauro Carvalho Chehab4-25/+74
More fixes for camorama schemas
2018-09-18preserve last used resolution if not changed via command lineschemasMauro Carvalho Chehab4-3/+38
Store the last used resolution at Gconf's schema. This way, when camorama is restarted, it will re-use it. Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2018-09-18Do more fixes at Camorama's schemaMauro Carvalho Chehab2-22/+36
There was still a mismatch between Camorama's schema file and the interface used internally. Sync them. Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2018-09-18Merge pull request #24 from mchehab/fpsMauro Carvalho Chehab52-507/+1004
Add support to displax maximum frame rate per resolution
2018-09-18Update Brazilian Portuguese traslationfpsMauro Carvalho Chehab1-8/+6
Add a translation for resolutions and add an underline for two menu options. Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2018-09-18Refresh the translation filesMauro Carvalho Chehab48-480/+960
As lines changed, refresh the files Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2018-09-18v4l: get maximum fps for each resolution and displayMauro Carvalho Chehab3-6/+36
Most modern cameras allow to get the maximum number of frames per second for each resolution. Add support for it. Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2018-09-18camorama.schemas: update schema fileMauro Carvalho Chehab1-16/+5
The credentials (login/password) were removed the protocol key was added to the schema. So, update the schemas file accordingly. Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2018-09-07Merge pull request #23 from mchehab/experimental_gtk4Mauro Carvalho Chehab68-4037/+10773
Add experimental support for gtk4 (version 3.92) and fix some bugs
2018-09-07Bump version to 0.20.30.20.3experimental_gtk4Mauro Carvalho Chehab3-15/+29
* Enable gcc warnings and clean them * Fix coding style issues * Fix Wayland camera display with Gtk 3 * Scale image if camera resolution is too high * Change default to use Gtk3 * Prevent a potential bug with YUV420 format * Add experimental support for Gtk 4 (version 3.92) * Use GApplication for Gtk 3 and Gtk 4 * Better name Gconf2 internal vars * Keep persistence at camera device name * Solve some memory leaks * Improve visual with Gtk 3 using icons It should be noticed that Prisma disables icon by default. * Solve a bug where remote map were happening even if disabled. * Solve a bug when closing preferences via the window (x) button * Get rid of the tray icon logic, as it is pretty much useless. Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2018-09-07callbacks: prevent destroying the preferences widgetMauro Carvalho Chehab3-0/+12
The preferences widget's logic is to hide/unride. Intercept the destroy signal, in order to prevent it to be distroyed if one clicks at the (X) button of the widget. Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2018-09-07callbacks: Avoid leaking memoryMauro Carvalho Chehab1-4/+8
Be sure to free memory when replacing a value and avoid memory leaks. Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2018-09-07interface.h: rename Gconf2 keysMauro Carvalho Chehab4-83/+97
Using KEY<number> makes harder to identify the meaning of it, as KEY* macros are also used at Linux input/evdev subsystem. Also, when something changes there, we start by having numbers skipped or needing to place stuff out of order. Finally, "PATH" is a terrible name, as it usually means the environment var. So, rename everything inside interface.h, in order to make easier to use them, and clearer that they're related to Gconf2. While here, get rid of "date_format", as it is not used anywhere. Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2018-09-07main: Store camera deviceMauro Carvalho Chehab1-0/+2
We have a key to store the camera device. Currently, it is only read from Gconf. It is useful to remember the last used device, so store it. Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2018-09-07main: add some g_free() in order to reduce memleak warningsMauro Carvalho Chehab1-8/+21
Running valgrind with gtk apps really sucks, as gtk doesn't really care about freeing stuff at the end. So, lots of leaks are reported by tools like valgrind. Let's at least free the stuff allocated at main.c at close_app() callback, in order to clean the mess a little bit. It should be noticed that gconf_client_get_string() already returns an allocated string, so no need to call g_strdup(). Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2018-09-07Optimize global widgetsMauro Carvalho Chehab3-5/+5
main_window is defined but never used; prefswindow is used, but, while it is set at camorama-window, it doesn't use it itself. Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2018-09-07Update remaining translationsMauro Carvalho Chehab48-3876/+7094
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2018-09-07Add missing pt_BR translationsMauro Carvalho Chehab1-2/+18
As on gtk3 we now have a different label for menu items that used to be images, we'll need to add translations for them too. Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2018-09-07add support for gtk4 on configure.ac (experimental)Mauro Carvalho Chehab3-2/+19
Now that we have all needed bits for Gtk 4, add a configure option to enable it. Please notice that gtk 4 support is still experimental, and was validated only with gtk 4 version 3.92. Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2018-09-07add the compatibility bits needed to build it with gtk 4Mauro Carvalho Chehab1-0/+18
Now that we don't use gtk_init_*() anymore, there are just a few minor changes required at the source code in order to make it build with Gtk 4. Please notice that there's a small hack there: originally, the popup menu required mouse button 3. I was unable to discover how to get it with gtk 4. As the other buttons are unused, with the new code, any mouse button will open the popup effects window. Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2018-09-07Change GtkHScale to GtkScaleMauro Carvalho Chehab2-11/+11
GtkHScale doesn't exist on Gtk 4. As GtkScale works fine since Gtk 2, use it. Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2018-09-07Add backward support for gtk2Mauro Carvalho Chehab4-1/+37
Support for gtk3 is too new. It is worth keeping support for gtk2 for a while, specially since the code changes to keep it are small. Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2018-09-07main: make it use gtk_application_new() & friendsMauro Carvalho Chehab5-35/+56
As with gtk 4 there's no way to pass command line arguments anymore to gtk_init, we need to change the logic, in order to use g_application() instead. It should be noticed that g_application() is not supported by gtk 2. So, this patch will temporarely break compatibility with it. The next patch will restore. I opted to add the backward compat on a separate patch as it makes easier to later drop gtk 2 compat, after we test gtk 3 support for a while. Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2018-09-07camorama-gtk4.ui: Get rid of everything that gtk4-builder-tool complainsMauro Carvalho Chehab1-254/+58
There are several things that gtk4-builder-tool complains at the GtkBuilder schema, with prevents the interface to load. Just get rid of them, without caring enough to have a good visual output. Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2018-09-07Copy data/camorama-gtk3.ui into data/camorama-gtk4.uiMauro Carvalho Chehab1-0/+1764
Before modifying it to fit at Gtk4 needs, copy it. Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2018-09-07camorama-gtk3: explicitly use the obsoleted GtkImageMenuItemMauro Carvalho Chehab1-22/+35
The Gtk 3 manual says it would be possible to use a GtkBox with a GtkLabel and GtkImage in order to replace it. I tried, both directly and using Glade 3.22. Didn't work. So, let's explicitly revert this change, as it makes Camorama with a bad visual (IMHO). We'll still need some solution if we want to preserve icons on menus for Gtk 4, but that's a separate issue. Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2018-09-07Get rid of obsolete Gtk3 widgetsMauro Carvalho Chehab1-730/+680
On Gtk3, several Widgets got obsoleted, being replaced by a different wigdet. The only exception is the GtkImageMenu item, that were simply removed, without any replacement. It seems that now it is not possible anymore (or at least it is not trivial) to associate a MenuItem with an image. Anyway, as those widgets don't exist anymore on Gtk4, we'll need to replace them anyway. The new camorama-gtk3.ui now validates with Glade 3.22. It should not work with gtk2, so, at least while we keep backport compatibility, let's have both schemas. Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2018-09-06Merge pull request #22 from mchehab/fixesMauro Carvalho Chehab1-0/+4
fileio: don't try to mount if remote update is disabled
2018-09-06Allow having different UIs depending on Gtk versionMauro Carvalho Chehab11-17/+1837
On Gtk3, several Widgets got obsoleted, being replaced by a different wigdet. For now, keep both gtk2 and gtk3 versions identical, e. g.: copied: camorama.ui -> camorama-gtk3.ui renamed: camorama.ui -> camorama-gtk2.ui The next patch will replace the obsolete widgets. Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2018-09-06fileio: don't try to mount if remote update is disabledfixesMauro Carvalho Chehab1-0/+4
The current logic tries to do a remote mount even when remote mount is not used. Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2018-09-06Merge pull request #21 from mchehab/gtk3_deprecated_conversionMauro Carvalho Chehab63-1992/+1761
Gtk3 deprecated conversion
2018-09-06Update translation filesgtk3_deprecated_conversionMauro Carvalho Chehab48-1783/+1717
Now that we have multiple copies of camorama.ui, it is time to refresh the translations, as they apply to both .ui files. Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2018-09-06gtk_menu_popup() is deprecated on gtk 3.22Mauro Carvalho Chehab1-0/+6
Use gtk_menu_popup_at_pointer() if gtk is 3.22 or upper. Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2018-09-06get rid of the unused xpm_label_box() functionMauro Carvalho Chehab2-23/+0
This function is not used anywhere and produces a warning with gtk 3. So, get rid of it. Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2018-09-06main: use gdk_monitor_get_geometry() on newer Gtk 3Mauro Carvalho Chehab1-2/+18
Since Gtk 3.22, width/height should be obtained per monitor. So, do that, using the default monitor. Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2018-09-06Remove the tray iconMauro Carvalho Chehab10-161/+6
There is a somewhat complex logic here that just adds a camorama icon to the tray bar. The only action it provides is that a click makes the window to minimize. That's too much effort for too little gain. As the API it uses is deprecated on gtk 3 in favor of Gnotification, it sounds better to just get rid of it for good. Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2018-09-05camorama-window: fix tray iconMauro Carvalho Chehab2-22/+12
The tray icon logic is currently broken. Fix it. Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2018-09-05Change default to build with Gtk3Mauro Carvalho Chehab3-13/+14
That allows working with Wayland and HiDPI displays. Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2018-09-05Merge pull request #20 from mchehab/gtk3_improvements0.20.2Mauro Carvalho Chehab80-9034/+11690
Gtk3 improvements
2018-09-05Bump version to 0.20.2Mauro Carvalho Chehab51-877/+880
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2018-09-05add support for scaling the image with cairoMauro Carvalho Chehab5-20/+47
It is easy to scale the image with cairo. Add support for it. For now, it reserves about 2/3 of the screen for the image stream display, keeping 1/3 reserved for the interface. It probably makes sense to add ways for the user to change the scale. It should be noticed that the snapshots won't be affected for the scale; will keep using the image resolution. Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>

Privacy Policy