Age | Commit message (Collapse) | Author | Files | Lines |
|
Now that we finally got rid of GSettings, let's create a new
version.
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
|
|
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>
|
|
Store configuration via Gsettings
|
|
Add translation for the remaining Gsettings schema.
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
|
|
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
|
|
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>
|
|
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>
|
|
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>
|
|
* 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>
|
|
More fixes for camorama schemas
|
|
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>
|
|
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>
|
|
Add support to displax maximum frame rate per resolution
|
|
Add a translation for resolutions and add an underline for
two menu options.
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
|
|
As lines changed, refresh the files
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
|
|
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>
|
|
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>
|
|
Add experimental support for gtk4 (version 3.92) and fix some bugs
|
|
* 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>
|
|
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>
|
|
Be sure to free memory when replacing a value and avoid memory
leaks.
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
Before modifying it to fit at Gtk4 needs, copy it.
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
|
|
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>
|
|
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>
|
|
fileio: don't try to mount if remote update is disabled
|
|
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>
|
|
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>
|
|
Gtk3 deprecated conversion
|
|
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>
|
|
Use gtk_menu_popup_at_pointer() if gtk is 3.22 or upper.
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
|
|
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>
|
|
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>
|
|
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>
|
|
The tray icon logic is currently broken. Fix it.
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
|
|
That allows working with Wayland and HiDPI displays.
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
|
|
Gtk3 improvements
|
|
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
|
|
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>
|