Commit graph

382 commits

Author SHA1 Message Date
Rui Matos
04b24631ab Revert "shell: Make sure we don't focus the icon view when starting"
This reverts commit 8e0f4e7be0 - there's
a better fix in the next commit.
2013-09-04 01:31:37 +02:00
Rui Matos
8e0f4e7be0 shell: Make sure we don't focus the icon view when starting
If focus ends up in the icon view we get an ugly selection so avoid
that at least initially.
2013-09-03 19:52:46 +02:00
Bastien Nocera
7bfc2f64f4 shell: Avoid width changes when searching
In some locales, the description will be too long, so
ellipsise it to avoid the window changing width.

https://bugzilla.gnome.org/show_bug.cgi?id=706626
2013-08-28 12:32:54 -04:00
Yosef Or Boczko
c713b4f972 shell: Fix stretched header bar lock button 2013-08-21 20:42:09 +03:00
Rui Matos
c1f2787c10 shell: Don't start search while on regular panels
... either by just typing or pressing ctrl+F or ctrl+S.

https://bugzilla.gnome.org/show_bug.cgi?id=706268
2013-08-20 13:06:14 +01:00
Bastien Nocera
c0fc740e15 shell: Remove setting invisible characters on entry
It's completely unused
2013-08-20 00:35:30 +02:00
Bastien Nocera
8c7efd538b shell: Start search when typing
https://bugzilla.gnome.org/show_bug.cgi?id=706268
2013-08-20 00:35:30 +02:00
Bastien Nocera
65c0b26888 shell: Use GDK_EVENT_* macros
Instead of TRUE/FALSE

https://bugzilla.gnome.org/show_bug.cgi?id=706268
2013-08-20 00:35:30 +02:00
Yosef Or Boczko
ef995c0728 shell: Use a search bar for the search entry
https://bugzilla.gnome.org/show_bug.cgi?id=704217
2013-08-18 23:20:34 +03:00
Yosef Or Boczko
9de9364ba5 shell: Set the headerbar as our titlebar and add a close button
- set "All Settings" as title of the headerbar
  (in the overview page)
- set the name of the each panel as title of the headerbar
- remove "hide-titlebar-when-maximizes" property
- add separator and close button to the headerbar
  (set "show-close-button" property as true)

https://bugzilla.gnome.org/show_bug.cgi?id=704217
2013-08-18 23:20:34 +03:00
Thomas Wood
eca503bcc5 shell: prevent a warning if the monitor number is not available yet
https://bugzilla.gnome.org/show_bug.cgi?id=705297
2013-08-02 16:35:26 +01:00
Thomas Wood
b52fde3fcc shell: prevent the window from being taller than the height of the monitor
https://bugzilla.gnome.org/show_bug.cgi?id=705297
2013-08-01 16:23:53 +01:00
Bastien Nocera
7c579838de shell: Use new delayed search entry API
https://bugzilla.gnome.org/show_bug.cgi?id=705151
2013-07-30 16:57:31 +02:00
Yosef Or Boczko
48789d617e shell: Use GtkButton instead GdHeaderButton
remove header-bar from LIBGD_INIT in configure.ac

https://bugzilla.gnome.org/show_bug.cgi?id=704170
2013-07-19 17:30:28 +03:00
Yosef Or Boczko
79d2fc73a3 shell: Fix the look of lock button
https://bugzilla.gnome.org/show_bug.cgi?id=703769
2013-07-12 11:17:55 +03:00
Kalev Lember
a14e52b9ed main: Drop the use of EggListBox
Now that all panels have been ported, we no longer need to do
g_type_ensure.

https://bugzilla.gnome.org/show_bug.cgi?id=702164
2013-07-02 16:19:09 +01:00
Thomas Wood
da4b2f0a89 shell: ensure a search is in progress before activating a panel
https://bugzilla.gnome.org/show_bug.cgi?id=702469
2013-06-19 10:14:02 +01:00
Xavier Claessens
2f2c29ebff Shell: Go back to overview when setting panel to NULL
This is what cc_shell_set_active_panel()'s doc says it
is supposed to do.

https://bugzilla.gnome.org/show_bug.cgi?id=701929
2013-06-14 11:51:47 +02:00
Matthias Clasen
034b37d1a2 shell: Fix build 2013-06-05 17:35:25 +02:00
Owen W. Taylor
658ebff612 shell: Raise the existing window when already opened
https://bugzilla.gnome.org/show_bug.cgi?id=692259
2013-06-05 16:29:43 +02:00
Rui Matos
612848acde shell: Set button arrow icons according to locale's text direction
https://bugzilla.gnome.org/show_bug.cgi?id=700543
2013-06-05 11:27:35 +02:00
Matthias Clasen
beea258891 Handle repeated commandline parsing properly
The control-center may call g_option_context_parse repeatedly,
so we need to reset the static variables used to hold the parsing
results, otherwise things like the search string may leak from
a previous parsing run.
https://bugzilla.gnome.org/show_bug.cgi?id=700362
2013-05-18 18:07:21 -04:00
Emanuele Aina
4e42a36133 shell: Fix warnings for the GVariant-encoded parameters
This fixes a spurious warning about ignored parameters due to the
variant not being NULL since it now contains the flags dictionary.

https://bugzilla.gnome.org/show_bug.cgi?id=700530
2013-05-17 17:01:28 +01:00
Joaquim Rocha
d78bc9772a wacom: Re-write gui_gtk in Clutter to introduce animations
The name of the file was also changed to calibratorgui.c/h to avoid
it being inconsistent, this way it is no longer dependent on the
the technology.

https://bugzilla.gnome.org/show_bug.cgi?id=667797
2013-05-17 16:36:59 +02:00
Tim Lunn
6bfce1e06b shell: Fix desktop_name memory leak
https://bugzilla.gnome.org/show_bug.cgi?id=699362
2013-05-06 18:11:04 +10:00
Bastien Nocera
8a7ee8afcb shell: Fix compile-time warning
cc-window.c:561:12: warning: 'matches' may be used uninitialized in this function [-Wmaybe-uninitialized]
2013-04-29 14:35:17 +02:00
Ondrej Holy
de1fc65ab3 cc-editable-entry: Add width_chars, max_width_chars and ellipsize properties
https://bugzilla.gnome.org/show_bug.cgi?id=693326
2013-04-26 17:28:20 +02:00
Bastien Nocera
c0fde4f260 shell: Use GtkHeaderBar instead of GdHeaderBar 2013-04-24 11:07:50 +02:00
Bastien Nocera
3c9843eb38 shell: Use GtkStack instead of GdStack 2013-04-24 10:59:39 +02:00
Bastien Nocera
015cd17f96 shell: Remove obsolete libnotify dependency
The notification code to open the firewall ports was removed
in commit 45ba8e89e8, but libnotify
was still initialised.

https://bugzilla.gnome.org/show_bug.cgi?id=697035
2013-04-12 11:39:36 +02:00
Emanuele Aina
ab0576f1f0 shell: Expose panel launching with DBus-activation
Turn Control Center in a DBus-activable service and export a
'launch-panel' GAction which accepts a tuple containing the id of the
desired panel and its parameters as a GVariant array.

The snippet below show how the custom shortcuts section of the keyboard
panel can be invoked by a external programs through DBus:

GVariantBuilder *flags = g_variant_builder_new (G_VARIANT_TYPE_VARDICT);
GVariantBuilder *params = g_variant_builder_new (G_VARIANT_TYPE ("av"));
g_variant_builder_add (params, "v", g_variant_builder_end (flags));
g_variant_builder_add (params, "v", g_variant_new_string ("shortcuts"));
g_variant_builder_add (params, "v", g_variant_new_string ("custom"));
GVariant *v = g_variant_new ("(s@av)", "keyboard", g_variant_builder_end (params));

GApplication *gnomecc = g_application_new (id, G_APPLICATION_IS_LAUNCHER);
if (!g_application_register (gnomecc, NULL, &error))
  g_error ("Failed to register launcher for %s: %s", id, error->message);
g_action_group_activate_action (G_ACTION_GROUP (gnomecc), "launch-panel", v);

https://bugzilla.gnome.org/show_bug.cgi?id=696054
2013-04-03 18:09:15 +02:00
Emanuele Aina
31a8a99440 shell: Let panels have their own commandline flags
Add a class method to CcPanel to get a GOptionGroup which will be added
to the main commandline parser. This gives panels the chance to have
commandline "--flags" in addition to the already available parameters.

This changes changes the way parameters are passed to panels: the first
entry in the GVariant array is always the a{sv} dictionary of
commandline flags, followed by the remaining free-form arguments.

https://bugzilla.gnome.org/show_bug.cgi?id=696054
2013-04-03 18:09:11 +02:00
Emanuele Aina
9977bb200e shell: Use GVariant to convey panel arguments instead of a string array
By using a GVariant of type "av" we can potentially pass more structured
data to panels, which will become relevant with the ability to invoke
them by GAction-based DBus-activation introduced in the following patch.

https://bugzilla.gnome.org/show_bug.cgi?id=696054
2013-04-03 18:02:10 +02:00
Bastien Nocera
a529e54669 shell: Remove debug 2013-03-26 18:39:41 +01:00
Frédéric Péters
7b3eb23bc4 shell: Fix translation of the window title
The string was marked as translatable, but the translation
was not used.
2013-03-26 17:00:45 +01:00
Jasper St. Pierre
c764fbe745 shell: Make the mouse back button go to the homepage
https://bugzilla.gnome.org/show_bug.cgi?id=690087
2013-03-26 14:40:46 +01:00
Cosimo Cecchi
7ec1a1eb75 Use latest libgd 2013-03-19 11:48:21 -04:00
Cosimo Cecchi
374cb444fe cc-window: use GdHeaderSimpleButton for the Back button
Simplifies code and ensures consistency with the other applications.
2013-03-19 11:48:19 -04:00
Florian Müllner
ddba39047b window: Split search into words
Rather than using the search entry text as a single term when filtering
panels, split the text into multiple terms and require result to match all
of them, which is consistent with the search provider and the encouraged
search pattern for GNOME applications.

https://bugzilla.gnome.org/show_bug.cgi?id=694960
2013-03-02 00:05:05 +01:00
Giovanni Campagna
2f1ae7e26f shell: don't prelight icons in the icon view
The follow-state property used to have no effect, because we used pixbufs
directly. It started to work when we switched to GIcons, but it looks
bad because the prelighted icons are too contrasted, so revert to the
previous behaviour.

https://bugzilla.gnome.org/show_bug.cgi?id=694219
2013-02-22 14:39:41 +01:00
Bastien Nocera
575bd6267d shell: Use GdStack for switching panels
https://bugzilla.gnome.org/show_bug.cgi?id=694325
2013-02-22 08:28:34 +01:00
Jeremy Bicha
178c16f4d8 shell: Drop obsolete region arguments from bash completion
https://bugzilla.gnome.org/show_bug.cgi?id=694183
2013-02-19 17:58:33 +01:00
Rui Matos
cfa16a070d Move cc-util into panels/common
We need this in some panels too.
2013-02-19 12:25:54 +01:00
Bastien Nocera
56008765c8 shell: Handle the usual "Alt+Left" key binding
For left-to-right languages, and Alt+Right to RTL.
2013-02-19 11:27:22 +01:00
Bastien Nocera
6cb6404e7e shell: Make the "home" button act as a "previous" button
Keep history of the visited panels, when navigating between
them through links, or activated through the shell's menu items,
and go back to the overview when the history is empty.

https://bugzilla.gnome.org/show_bug.cgi?id=643322
2013-02-19 11:27:22 +01:00
William Jon McCann
91924726f1 shell: Use a go-previous icon instead of grid
This is what we do everywhere else.

https://bugzilla.gnome.org/show_bug.cgi?id=681530
2013-02-19 11:27:19 +01:00
Jeremy Bicha
dd73671c24 shell: build fix (clutter-gtk includes)
Building without cheese broke with commit 64467d7

https://bugzilla.gnome.org/show_bug.cgi?id=694118
2013-02-18 15:20:44 -05:00
William Jon McCann
73a5b5ce45 Fix build 2013-02-18 14:09:24 -05:00
Bastien Nocera
5f4e140078 shell: Remove unused gnomecc.menu file
Searching for Settings is now handled through a search provider
in gnome-control-center, for which the display is special-cased in
gnome-shell.
2013-02-18 19:24:48 +01:00
Cosimo Cecchi
92765b97c0 cc-window: don't render a frame around scrolled windows
The header bar will now render one.
2013-02-18 12:55:55 -05:00