summaryrefslogtreecommitdiff
path: root/libslab
diff options
context:
space:
mode:
authorrbuj <[email protected]>2021-10-27 17:23:33 +0200
committerraveit65 <[email protected]>2021-11-20 21:45:51 +0100
commit17ccb4f4bd610252e4ea600546750ddcc09c855a (patch)
treee1cc1783e0d46cb80c52d2a40b748925141f25ee /libslab
parent9d702031671fa8aa4cdf6ea512b3f59b8ea3da37 (diff)
downloadmate-control-center-17ccb4f4bd610252e4ea600546750ddcc09c855a.tar.bz2
mate-control-center-17ccb4f4bd610252e4ea600546750ddcc09c855a.tar.xz
Use a blank line at most
Diffstat (limited to 'libslab')
-rw-r--r--libslab/app-resizer.c1
-rw-r--r--libslab/application-tile.c5
-rw-r--r--libslab/bookmark-agent.c9
-rw-r--r--libslab/libslab-utils.c1
-rw-r--r--libslab/slab-mate-util.c1
5 files changed, 0 insertions, 17 deletions
diff --git a/libslab/app-resizer.c b/libslab/app-resizer.c
index f32ab85e..299e48f9 100644
--- a/libslab/app-resizer.c
+++ b/libslab/app-resizer.c
@@ -28,7 +28,6 @@ static gboolean app_resizer_paint_window (GtkWidget * widget, cairo_t * cr, AppS
G_DEFINE_TYPE (AppResizer, app_resizer, GTK_TYPE_LAYOUT);
-
static void
app_resizer_class_init (AppResizerClass * klass)
{
diff --git a/libslab/application-tile.c b/libslab/application-tile.c
index 2127222b..8492a923 100644
--- a/libslab/application-tile.c
+++ b/libslab/application-tile.c
@@ -130,7 +130,6 @@ application_tile_new_full (const gchar *desktop_item_id,
MateDesktopItem *desktop_item;
-
desktop_item = load_desktop_item_from_unknown (desktop_item_id);
if (
@@ -405,7 +404,6 @@ create_header (const gchar *name)
{
GtkWidget *header;
-
header = gtk_label_new (name);
gtk_label_set_line_wrap (GTK_LABEL (header), TRUE);
gtk_label_set_xalign (GTK_LABEL (header), 0.0);
@@ -424,7 +422,6 @@ create_subheader (const gchar *desc)
{
GtkWidget *subheader;
-
subheader = gtk_label_new (desc);
gtk_label_set_ellipsize (GTK_LABEL (subheader), PANGO_ELLIPSIZE_END);
gtk_label_set_xalign (GTK_LABEL (subheader), 0.0);
@@ -474,7 +471,6 @@ add_to_user_list (ApplicationTile *this)
BookmarkItem *item;
-
item = g_new0 (BookmarkItem, 1);
item->uri = TILE (this)->uri;
item->mime_type = "application/x-desktop";
@@ -608,7 +604,6 @@ update_user_list_menu_item (ApplicationTile *this)
TileAction *action;
GtkWidget *item;
-
if (priv->agent_status == BOOKMARK_STORE_ABSENT) {
if (TILE (this)->actions [APPLICATION_TILE_ACTION_UPDATE_MAIN_MENU])
g_object_unref (TILE (this)->actions [APPLICATION_TILE_ACTION_UPDATE_MAIN_MENU]);
diff --git a/libslab/bookmark-agent.c b/libslab/bookmark-agent.c
index b37616ff..31834bd1 100644
--- a/libslab/bookmark-agent.c
+++ b/libslab/bookmark-agent.c
@@ -245,7 +245,6 @@ bookmark_agent_remove_item (BookmarkAgent *this, const gchar *uri)
gint rank_i;
gint i;
-
g_return_if_fail (priv->user_modifiable);
if (! bookmark_agent_has_item (this, uri))
@@ -287,7 +286,6 @@ bookmark_agent_reorder_items (BookmarkAgent *this, const gchar **uris)
gint i;
-
g_return_if_fail (priv->reorderable);
for (i = 0; uris && uris [i]; ++i)
@@ -578,7 +576,6 @@ get_property (GObject *g_obj, guint prop_id, GValue *value, GParamSpec *pspec)
BookmarkAgent *this = BOOKMARK_AGENT (g_obj);
BookmarkAgentPrivate *priv = bookmark_agent_get_instance_private (this);
-
switch (prop_id) {
case PROP_ITEMS:
g_value_set_pointer (value, priv->items);
@@ -604,7 +601,6 @@ finalize (GObject *g_obj)
gint i;
-
for (i = 0; priv->items && priv->items [i]; ++i)
bookmark_item_free (priv->items [i]);
@@ -666,7 +662,6 @@ update_items (BookmarkAgent *this)
gint i;
-
uris = g_bookmark_file_get_uris (priv->store, & n_uris);
uris_ordered = g_new0 (gchar *, n_uris + 1);
uris_ordered [n_uris] = NULL;
@@ -762,7 +757,6 @@ save_store (BookmarkAgent *this)
gchar *dir;
-
g_return_if_fail (priv->user_modifiable);
priv->needs_sync = TRUE;
@@ -786,7 +780,6 @@ get_rank (BookmarkAgent *this, const gchar *uri)
gint i;
-
if (! priv->reorderable)
return -1;
@@ -819,7 +812,6 @@ set_rank (BookmarkAgent *this, const gchar *uri, gint rank)
gint i;
-
if (! (priv->reorderable && bookmark_agent_has_item (this, uri)))
return;
@@ -944,7 +936,6 @@ find_package_data_file (const gchar *filename)
gchar *path = NULL;
gint i;
-
dirs = g_get_system_data_dirs ();
for (i = 0; ! path && dirs && dirs [i]; ++i) {
diff --git a/libslab/libslab-utils.c b/libslab/libslab-utils.c
index 27612262..5ee4d09c 100644
--- a/libslab/libslab-utils.c
+++ b/libslab/libslab-utils.c
@@ -21,7 +21,6 @@ libslab_mate_desktop_item_new_from_unknown_id (const gchar *id)
GError *error = NULL;
-
if (! id)
return NULL;
diff --git a/libslab/slab-mate-util.c b/libslab/slab-mate-util.c
index 2eb55209..b036de18 100644
--- a/libslab/slab-mate-util.c
+++ b/libslab/slab-mate-util.c
@@ -32,7 +32,6 @@ load_desktop_item_from_unknown (const gchar *id)
GError *error = NULL;
-
item = mate_desktop_item_new_from_uri (id, 0, &error);
if (! error)