summaryrefslogtreecommitdiff
path: root/src/sidebar/common.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sidebar/common.c')
-rw-r--r--src/sidebar/common.c39
1 files changed, 21 insertions, 18 deletions
diff --git a/src/sidebar/common.c b/src/sidebar/common.c
index 4b46c50..eebbd0d 100644
--- a/src/sidebar/common.c
+++ b/src/sidebar/common.c
@@ -342,8 +342,8 @@ GType sidebar_header_get_type (void) G_GNUC_CONST;
enum {
SIDEBAR_HEADER_DUMMY_PROPERTY
};
-SidebarHeader* sidebar_header_new (const gchar* name, gboolean emphasized);
-SidebarHeader* sidebar_header_construct (GType object_type, const gchar* name, gboolean emphasized);
+SidebarHeader* sidebar_header_new (const gchar* name, const gchar* tooltip, gboolean emphasized);
+SidebarHeader* sidebar_header_construct (GType object_type, const gchar* name, const gchar* tooltip, gboolean emphasized);
static gboolean sidebar_header_real_is_emphasized (SidebarEmphasizableEntry* base);
static void sidebar_header_finalize (GObject * obj);
GtkMenu* sidebar_contextable_get_sidebar_context_menu (SidebarContextable* self, GdkEventButton* event);
@@ -1033,30 +1033,33 @@ GType sidebar_root_only_branch_get_type (void) {
}
-SidebarHeader* sidebar_header_construct (GType object_type, const gchar* name, gboolean emphasized) {
+SidebarHeader* sidebar_header_construct (GType object_type, const gchar* name, const gchar* tooltip, gboolean emphasized) {
SidebarHeader * self = NULL;
const gchar* _tmp0_;
- gboolean _tmp1_;
+ const gchar* _tmp1_;
+ gboolean _tmp2_;
#line 123 "/home/jens/Source/shotwell/src/sidebar/common.vala"
g_return_val_if_fail (name != NULL, NULL);
#line 124 "/home/jens/Source/shotwell/src/sidebar/common.vala"
_tmp0_ = name;
#line 124 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- self = (SidebarHeader*) sidebar_grouping_construct (object_type, _tmp0_, NULL, NULL);
+ _tmp1_ = tooltip;
+#line 124 "/home/jens/Source/shotwell/src/sidebar/common.vala"
+ self = (SidebarHeader*) sidebar_grouping_construct (object_type, _tmp0_, NULL, _tmp1_);
#line 125 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- _tmp1_ = emphasized;
+ _tmp2_ = emphasized;
#line 125 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- self->priv->emphasized = _tmp1_;
+ self->priv->emphasized = _tmp2_;
#line 123 "/home/jens/Source/shotwell/src/sidebar/common.vala"
return self;
-#line 1053 "common.c"
+#line 1056 "common.c"
}
-SidebarHeader* sidebar_header_new (const gchar* name, gboolean emphasized) {
+SidebarHeader* sidebar_header_new (const gchar* name, const gchar* tooltip, gboolean emphasized) {
#line 123 "/home/jens/Source/shotwell/src/sidebar/common.vala"
- return sidebar_header_construct (SIDEBAR_TYPE_HEADER, name, emphasized);
-#line 1060 "common.c"
+ return sidebar_header_construct (SIDEBAR_TYPE_HEADER, name, tooltip, emphasized);
+#line 1063 "common.c"
}
@@ -1072,7 +1075,7 @@ static gboolean sidebar_header_real_is_emphasized (SidebarEmphasizableEntry* bas
result = _tmp0_;
#line 129 "/home/jens/Source/shotwell/src/sidebar/common.vala"
return result;
-#line 1076 "common.c"
+#line 1079 "common.c"
}
@@ -1083,7 +1086,7 @@ static void sidebar_header_class_init (SidebarHeaderClass * klass) {
g_type_class_add_private (klass, sizeof (SidebarHeaderPrivate));
#line 120 "/home/jens/Source/shotwell/src/sidebar/common.vala"
G_OBJECT_CLASS (klass)->finalize = sidebar_header_finalize;
-#line 1087 "common.c"
+#line 1090 "common.c"
}
@@ -1092,14 +1095,14 @@ static void sidebar_header_sidebar_emphasizable_entry_interface_init (SidebarEmp
sidebar_header_sidebar_emphasizable_entry_parent_iface = g_type_interface_peek_parent (iface);
#line 120 "/home/jens/Source/shotwell/src/sidebar/common.vala"
iface->is_emphasized = (gboolean (*) (SidebarEmphasizableEntry *)) sidebar_header_real_is_emphasized;
-#line 1096 "common.c"
+#line 1099 "common.c"
}
static void sidebar_header_instance_init (SidebarHeader * self) {
#line 120 "/home/jens/Source/shotwell/src/sidebar/common.vala"
self->priv = SIDEBAR_HEADER_GET_PRIVATE (self);
-#line 1103 "common.c"
+#line 1106 "common.c"
}
@@ -1109,7 +1112,7 @@ static void sidebar_header_finalize (GObject * obj) {
self = G_TYPE_CHECK_INSTANCE_CAST (obj, SIDEBAR_TYPE_HEADER, SidebarHeader);
#line 120 "/home/jens/Source/shotwell/src/sidebar/common.vala"
G_OBJECT_CLASS (sidebar_header_parent_class)->finalize (obj);
-#line 1113 "common.c"
+#line 1116 "common.c"
}
@@ -1139,7 +1142,7 @@ GtkMenu* sidebar_contextable_get_sidebar_context_menu (SidebarContextable* self,
g_return_val_if_fail (SIDEBAR_IS_CONTEXTABLE (self), NULL);
#line 135 "/home/jens/Source/shotwell/src/sidebar/common.vala"
return SIDEBAR_CONTEXTABLE_GET_INTERFACE (self)->get_sidebar_context_menu (self, event);
-#line 1143 "common.c"
+#line 1146 "common.c"
}
@@ -1150,7 +1153,7 @@ static void sidebar_contextable_base_init (SidebarContextableIface * iface) {
if (!initialized) {
#line 133 "/home/jens/Source/shotwell/src/sidebar/common.vala"
initialized = TRUE;
-#line 1154 "common.c"
+#line 1157 "common.c"
}
}