Skip to content

Commit

Permalink
gtk-engine-murrine: func prototypes for gcc-14 (#362250)
Browse files Browse the repository at this point in the history
  • Loading branch information
vcunat committed Dec 13, 2024
2 parents 2ec3c7e + cd38159 commit f2abf25
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
33 changes: 33 additions & 0 deletions pkgs/by-name/gt/gtk-engine-murrine/missing-prototypes.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
diff --git a/src/murrine_rc_style.h b/src/murrine_rc_style.h
index 8e3d7a8..2823e7a 100644
--- a/src/murrine_rc_style.h
+++ b/src/murrine_rc_style.h
@@ -154,5 +154,6 @@ struct _MurrineRcStyleClass
};

GType murrine_rc_style_get_type (void);
+void murrine_rc_style_register_types (GTypeModule *module);

#endif /* MURRINE_RC_STYLE_H */
diff --git a/src/murrine_style.h b/src/murrine_style.h
index 33ae51c..1646e6d 100644
--- a/src/murrine_style.h
+++ b/src/murrine_style.h
@@ -102,5 +102,6 @@ struct _MurrineStyleClass
};

GType murrine_style_get_type (void);
+void murrine_style_register_types (GTypeModule *module);

#endif /* MURRINE_STYLE_H */
diff --git a/src/support.h b/src/support.h
index e141067..4bf824e 100644
--- a/src/support.h
+++ b/src/support.h
@@ -149,4 +149,6 @@ G_GNUC_INTERNAL void murrine_get_notebook_tab_position (GtkWidget *widget,
gboolean *start,
gboolean *end);

+gboolean murrine_widget_is_ltr (GtkWidget *widget);
+gboolean murrine_object_is_a (const GObject * object, const gchar * type_name);
#endif /* SUPPORT_H */
5 changes: 5 additions & 0 deletions pkgs/by-name/gt/gtk-engine-murrine/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ stdenv.mkDerivation rec {
sha256 = "129cs5bqw23i76h3nmc29c9mqkm9460iwc8vkl7hs4xr07h8mip9";
};

patches = [
# add prototypes to fix gcc-14 implicit-function-declaration errors
./missing-prototypes.diff
];

strictDeps = true;
nativeBuildInputs = [ pkg-config intltool ];
buildInputs = [ gtk2 ];
Expand Down

0 comments on commit f2abf25

Please sign in to comment.