mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-02 04:50:21 +00:00
libfm: fix build
taken from ad0d95339e/bucket_09/libfm/patches
closes #368573
This commit is contained in:
11
pkgs/by-name/li/libfm/0001-fm-load-all-actions.patch
Normal file
11
pkgs/by-name/li/libfm/0001-fm-load-all-actions.patch
Normal file
@@ -0,0 +1,11 @@
|
||||
--- a/src/actions/action.c
|
||||
+++ b/src/actions/action.c
|
||||
@@ -2047,7 +2047,7 @@
|
||||
gchar* _tmp9_ = NULL;
|
||||
_tmp0_ = fm_all_actions;
|
||||
g_hash_table_remove_all (_tmp0_);
|
||||
- _tmp2_ = _tmp1_ = g_get_system_data_dirs ();
|
||||
+ _tmp2_ = _tmp1_ = (gchar **)g_get_system_data_dirs ();
|
||||
dirs = _tmp2_;
|
||||
dirs_length1 = _vala_array_length (_tmp1_);
|
||||
_dirs_size_ = dirs_length1;
|
||||
@@ -0,0 +1,11 @@
|
||||
--- a/src/gtk/exo/exo-icon-view.c
|
||||
+++ b/src/gtk/exo/exo-icon-view.c
|
||||
@@ -2819,7 +2819,7 @@
|
||||
/* allocate a new event to forward */
|
||||
new_event = gdk_event_copy ((GdkEvent *) event);
|
||||
g_object_unref (G_OBJECT (new_event->key.window));
|
||||
- new_event->key.window = g_object_ref (G_OBJECT (gtk_widget_get_window (icon_view->priv->search_entry)));
|
||||
+ new_event->key.window = (GdkWindow *)g_object_ref (G_OBJECT (gtk_widget_get_window (icon_view->priv->search_entry)));
|
||||
|
||||
/* send the event to the search entry. If the "preedit-changed" signal is
|
||||
* emitted during this event, priv->search_imcontext_changed will be set.
|
||||
11
pkgs/by-name/li/libfm/0003-ask-action-on-drop.patch
Normal file
11
pkgs/by-name/li/libfm/0003-ask-action-on-drop.patch
Normal file
@@ -0,0 +1,11 @@
|
||||
--- a/src/gtk/fm-dnd-dest.c
|
||||
+++ b/src/gtk/fm-dnd-dest.c
|
||||
@@ -458,7 +458,7 @@
|
||||
gtk_action_set_sensitive(act, FALSE);
|
||||
}
|
||||
}
|
||||
- ri.menu = g_object_ref(gtk_ui_manager_get_widget(ui, "/popup"));
|
||||
+ ri.menu = (GtkMenu *)g_object_ref(gtk_ui_manager_get_widget(ui, "/popup"));
|
||||
g_signal_connect(ri.menu, "selection-done", G_CALLBACK(gtk_widget_destroy), NULL);
|
||||
unmap_handler = g_signal_connect(ri.menu, "unmap",
|
||||
G_CALLBACK(run_unmap_handler), &ri);
|
||||
11
pkgs/by-name/li/libfm/0004-create-icon-view.patch
Normal file
11
pkgs/by-name/li/libfm/0004-create-icon-view.patch
Normal file
@@ -0,0 +1,11 @@
|
||||
--- a/src/gtk/fm-standard-view.c
|
||||
+++ b/src/gtk/fm-standard-view.c
|
||||
@@ -637,7 +637,7 @@
|
||||
"text", FM_FOLDER_MODEL_COL_NAME );
|
||||
if(fv->renderer_text)
|
||||
g_object_unref(fv->renderer_text);
|
||||
- fv->renderer_text = g_object_ref_sink(render);
|
||||
+ fv->renderer_text = (FmCellRendererText *)g_object_ref_sink(render);
|
||||
exo_icon_view_set_search_column((ExoIconView*)fv->view, FM_FOLDER_MODEL_COL_NAME);
|
||||
g_signal_connect(fv->view, "item-activated", G_CALLBACK(on_icon_view_item_activated), fv);
|
||||
g_signal_connect(fv->view, "selection-changed", G_CALLBACK(on_sel_changed), fv);
|
||||
@@ -27,6 +27,13 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "sha256-pQQmMDBM+OXYz/nVZca9VG8ii0jJYBU+02ajTofK0eU=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
./0001-fm-load-all-actions.patch
|
||||
./0002-exo-icon-view-key-press-event.patch
|
||||
./0003-ask-action-on-drop.patch
|
||||
./0004-create-icon-view.patch
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
vala
|
||||
pkg-config
|
||||
|
||||
Reference in New Issue
Block a user